/* Copyright (c) 2023, Canaan Bright Sight Co., Ltd
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 1. Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "sample_pufs.h"
#include "stdbool.h"

typedef struct
{
    uint16_t fbits; ///< Field element length in bits.
    uint16_t nbits; ///< Subgroup order length in bits.
    uint8_t ftype; ///< Field type in hardware.
    uint8_t h; ///< Co-factor.
    uint8_t len; ///< Field element length in bytes.
    bool pf; ///< Prime field flag
} pufs_ecc_param_st;

pufs_ecc_param_st ecc_param[] = {
    {
        /* NISTB163 */
        163,
        163,
        0,
        2,
        21,
        false,
    },
    {
        /* NISTB233 */
        233,
        233,
        1,
        2,
        30,
        false,
    },
    {
        /* NISTB283 */
        283,
        282,
        2,
        2,
        36,
        false,
    },
    {
        /* NISTB409 */
        409,
        409,
        3,
        2,
        52,
        false,
    },
    {
        /* NISTB571 */
        571,
        570,
        4,
        2,
        72,
        false,
    },
    {
        /* NISTK163 */
        163,
        163,
        0,
        2,
        21,
        false,
    },
    {
        /* NISTK233 */
        233,
        232,
        1,
        4,
        30,
        false,
    },
    {
        /* NISTK283 */
        283,
        281,
        2,
        4,
        36,
        false,
    },
    {
        /* NISTK409 */
        409,
        407,
        3,
        4,
        52,
        false,
    },
    {
        /* NISTK571 */
        571,
        570,
        4,
        4,
        72,
        false,
    },
    {
        /* NISTP192 */
        192,
        192,
        0,
        1,
        24,
        true,
    },
    {
        /* NISTP224 */
        224,
        224,
        1,
        1,
        28,
        true,
    },
    {
        /* NISTP256 */
        256,
        256,
        2,
        1,
        32,
        true,
    },
    {
        /* NISTP384 */
        384,
        384,
        3,
        1,
        48,
        true,
    },
    {
        /* NISTP521 */
        521,
        521,
        4,
        1,
        66,
        true,
    },
    {
        /* SM2: */
        256,
        256,
        2,
        1,
        32,
        true,
    },
};

static const struct ecprk_test_pattern {
    uint8_t name;
    uint32_t keybits;
    const void* key;
    uint32_t saltlen;
    const void* salt;
    uint32_t infolen;
    const void* info;
    const void* Qx;
    const void* Qy;
} ecprk_tp[] = {
    { ECC_NISTB163,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_NISTB163") - 1,
        "ECC_NISTB163",
        "\x02\xa5\x48\xcf\x30\x5b\xa6\x56\xdb\x4c\x41\xec\xf9\x9d\xda\x12\x5e\xef\x86\x5c\x4a",
        "\x05\x18\x7b\x83\xfb\x6e\xd6\xf9\xd0\x48\x90\x3d\x29\x44\x85\x9a\x31\x5f\xca\x78\x50" },
    { ECC_NISTB233,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_NISTB233") - 1,
        "ECC_NISTB233",
        "\x01\xd5\x5e\x9d\x85\xf5\x76\xe3\x5c\x6f\x5f\xbc\xec\x5d\x89\x77\x5a\x04\x3a\xaf\xe0\x08\x78\x3d\x15\xa3\x56\xaf\x80\x37",
        "\x00\x1c\x03\x95\x97\xbf\x21\x82\x19\x80\x5a\x29\x89\x0f\x4b\x6d\xfc\x68\x03\x85\x15\xc2\x11\x39\x7a\xca\xd6\xc2\x11\x54" },
    { ECC_NISTK163,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_NISTK163") - 1,
        "ECC_NISTK163",
        "\x05\x0d\x45\x93\x3e\xcc\x06\x97\x85\x7a\x94\xf4\x2e\xca\xec\xd9\x44\x61\xe8\x26\xbd",
        "\x01\x93\x06\x42\xdb\x2c\xa0\x9f\x58\xb9\x36\xee\x3e\xaa\xba\x61\x4b\x60\xdd\x82\xf7" },
    { ECC_NISTK233,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_NISTK233") - 1,
        "ECC_NISTK233",
        "\x00\x7c\x7c\x5a\x57\x16\x91\x21\x63\x85\xdb\x99\x4e\xbc\x77\x63\x0e\x9a\x3f\xd1\x78\x28\x3f\xf2\x91\x7b\x36\x46\x8c\x6f",
        "\x01\x03\xd7\x90\x68\xc2\x69\x9e\x66\x08\xef\xbc\x27\xfd\xf7\xf5\xd8\x1f\x1a\xca\x3d\x54\x03\xb2\xac\xe3\xf1\xc5\x87\xff" },
    { ECC_NISTP192,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_NISTP192") - 1,
        "ECC_NISTP192",
        "\x5d\xbe\x06\xe7\xf4\x4c\xcf\x69\x09\x53\xc4\x22\x4f\xba\x86\xbf\xb8\x5f\x6c\xa3\x75\x99\x86\x49",
        "\x77\x81\xc9\xd2\x86\xf7\x6e\x06\x72\xfb\x00\x2b\xf1\x70\xab\xc7\xb0\xd7\x59\x92\xca\x3e\xe3\xb9" },
    { ECC_NISTP224,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_NISTP224") - 1,
        "ECC_NISTP224",
        "\xd7\x6a\x01\x43\x6c\x3d\x2a\x51\x5c\x1f\xbc\x1e\x11\x89\xff\x0d\x95\x4f\x92\xa4\xab\xa1\x44\xfd\x87\x5d\xb6\x0e",
        "\x5d\x10\xe5\x59\xfc\x40\x56\x9d\xea\x9a\x48\x42\x7c\xd0\x2c\xaf\x71\x39\xba\xb7\xd5\x8b\xf2\x25\x59\x90\xfb\x2e" },
    { ECC_NISTP256,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_NISTP256") - 1,
        "ECC_NISTP256",
        "\x76\x0d\x4d\xac\xf5\x75\xf0\xdb\x7b\xc7\x7d\xa8\x67\x46\x96\xd4\xfa\x00\x21\x12\xec\x22\x88\x60\x78\x1c\x84\x0b\x05\xd4\x31\xe5",
        "\x2a\xb1\x6b\x3e\xe6\xb4\x4d\xb7\x5f\x74\x0e\xa3\x18\x13\x40\x26\xf3\x06\xb2\x87\xaf\x18\x07\xc3\xc8\xf9\x7c\x98\x68\x8e\x0c\x0f" },
    { ECC_SM2,
        128,
        "\x95\xce\xa2\x47\xa7\xe9\x32\x03\x49\x3f\x55\xce\x9d\xf8\xf0\xcb",
        16,
        "\x57\x0a\xe3\xa0\x22\xb6\x2b\x6b\x1e\xd4\x8d\xbb\x50\x38\x7b\xdb",
        sizeof("ECC_SM2") - 1,
        "ECC_SM2",
        "\xc4\xef\x02\x40\x84\xd9\xa1\x66\xdc\xa3\x42\x12\x64\xcd\xa5\xd8\x83\xb0\x07\xc5\x99\x97\x46\xaf\x5b\x07\x4b\xca\xf2\x78\x54\xb1",
        "\x42\x0f\x7e\x9f\x97\xdb\x9e\xf4\x53\x98\x5c\xa6\xdf\x9e\xf8\x68\x2a\x4a\xf9\xbc\x1a\x88\x53\xe5\x1d\x8a\xad\x4e\x8d\x75\xf5\xe0" },
};

static const struct ecpuk_test_pattern {
    uint8_t name;
    const void* prk;
    const void* Qx;
    const void* Qy;
} ecpuk_tp[] = {
    {
        ECC_NISTB163,
        "\x00\x00\x00\x01\x87\xc0\xc5\x88\xfb\xdc\xf9\x4a\x53\xb4\x51\x6d\x62\xd8\x98\xd0\x20",
        "\x01\xe1\x6c\x18\xb8\x00\xd4\xd5\x5c\xea\x0e\x77\x22\x46\x73\x11\xd8\x98\xe4\x65\x4e",
        "\x06\x9e\xc2\xe9\x5a\x75\xa5\x9f\x01\x41\x4c\xed\x5c\xeb\x72\xb8\xf3\x47\xa9\x62\x09",
    },
    {
        ECC_NISTB233,
        "\x00\x00\x00\xd4\x67\xbb\x20\x60\xec\xb1\x05\x29\x68\x49\x47\xe1\xe9\x5a\x74\x03\x48\xab\x21\xc3\x8a\xfa\xf6\xe4\x64\xa2",
        "\x00\xb8\x93\x2e\xe9\x9a\xdf\x72\xb6\x20\xe1\xa6\x77\x9c\x9d\xc5\xf9\xad\x38\xbd\x3f\x64\x75\xca\xe8\x4e\x20\x9c\x70\x4e",
        "\x01\x04\x05\x1c\xed\x12\x59\xd5\x08\x5f\x2e\x1c\x8f\x5c\xa5\x39\x4e\x09\x4c\x33\xe7\x57\xa6\x3c\xe4\x3d\x1c\x06\xd3\xec",
    },
    {
        ECC_NISTK163,
        "\x02\x8a\x74\x47\xf9\x5b\x43\xc0\x72\x72\x2e\xe5\x2f\x2a\x68\x89\x75\x18\x83\x02\x72",
        "\x07\x2d\xad\xf2\x4b\x00\xf9\xa2\xa0\xad\x6f\xbf\xb9\xd8\x61\x81\xe9\x39\x90\x01\x74",
        "\x04\xbc\x1d\x49\x87\xdd\xe0\xd2\xf6\x33\xdf\x16\xd6\x86\xe2\xa7\x8d\x6d\x3f\x49\xf3",
    },
    {
        ECC_NISTK233,
        "\x00\x01\xda\x74\x22\xb5\x0e\x3f\xf0\x51\xf2\xaa\xae\xd1\x0a\xce\xa6\xcb\xf6\x11\x0c\x51\x7d\xa2\xf4\xea\xca\x8b\x5b\x87",
        "\x01\xc7\x47\x5d\xa9\xa1\x61\xe4\xb3\xf7\xd6\xb0\x86\x49\x40\x63\x54\x3a\x97\x9e\x34\xb8\xd7\xac\x44\x20\x4d\x47\xbf\x9f",
        "\x01\x31\xcb\xd4\x33\xf1\x12\x87\x1c\xc1\x75\x94\x39\x91\xb6\xa1\x35\x0b\xf0\xcd\xd5\x7e\xd8\xc8\x31\xa2\xa7\x71\x0c\x92",
    },
    {
        ECC_NISTP192,
        "\x00\x17\x89\x99\x49\xd0\x2b\x55\xf9\x55\x68\x46\x41\x1c\xc9\xde\x51\x2c\x6f\x16\xec\xde\xb1\xc4",
        "\x14\xf6\x97\x38\x59\x96\x89\xf5\x70\x6a\xb7\x13\x43\xbe\xcc\x88\x6e\xf1\x56\x9a\x2d\x11\x37\xfe",
        "\x0c\xf5\xa4\x33\x90\x9e\x33\x21\x7f\xb4\xdf\x6b\x95\x93\xf7\x1d\x43\xfb\x1c\x2a\x56\x53\xb7\x63",
    },
    {
        ECC_NISTP224,
        "\x00\x69\x75\xfe\xbc\x7b\x44\x2d\xab\x8f\xd2\x83\xec\x2e\x4b\xdd\x0e\x00\x09\x52\x5b\x1c\xe0\x71\xf9\xab\x59\x56",
        "\x56\xfb\x65\x38\xf1\x72\x3d\x2b\xef\x3c\x76\x41\x34\x32\x0b\x44\xba\x61\x5f\x66\x3d\xb8\x04\xe5\x40\x50\xb9\x5a",
        "\x95\x14\xa4\x42\xeb\x66\xdb\xf2\xb4\x50\x74\x6f\x66\xd5\x41\x01\x87\x7a\x50\xd4\xbc\x29\x10\xc6\x1d\x00\x5a\xdd",
    },
    {
        ECC_NISTP256,
        "\x00\x2a\x10\xb1\xb5\xb9\xfa\x0b\x78\xd3\x8e\xd2\x9c\xd9\xce\xc1\x85\x20\xe0\xfe\x93\x02\x3e\x35\x50\xbb\x71\x63\xab\x49\x05\xc6",
        "\xe9\xcd\x2e\x8f\x15\xbd\x90\xcb\x07\x07\xe0\x5e\xd3\xb6\x01\xaa\xce\x7e\xf5\x71\x42\xa6\x46\x61\xea\x1d\xd7\x19\x9e\xbb\xa9\xac",
        "\xc9\x6b\x01\x15\xbe\xd1\xc1\x34\xb6\x8f\x89\x58\x4b\x04\x0a\x19\x4b\xfa\xd9\x4a\x40\x4f\xdb\x37\xad\xad\x10\x7d\x5a\x0b\x4c\x5e",
    },
};

static const struct ecpkv_test_pattern {
    uint8_t name;
    bool valid;
    const void* Qx;
    const void* Qy;
} ecpkv_tp[] = {
    {
        ECC_NISTB163,
        true,
        "\x03\xa4\xca\xa1\x43\x9a\xc6\xd0\x9e\xf2\xdb\x6c\xb7\xee\x13\x5e\x9f\x8a\xd0\x0d\x06",
        "\x00\x01\x10\x12\x15\x8e\x38\xec\xe6\x59\xa3\xd6\xf2\x1e\x7c\x98\x50\x30\xd1\xc3\xaf",
    },
    {
        ECC_NISTB163,
        false,
        "\x03\x57\x4c\x6d\x7d\x8c\x87\x2b\xa9\x34\x27\x58\xa9\x2f\x0a\x8d\xc3\xa4\x23\x44\x9c",
        "\x04\x6d\xaa\x0f\xc2\x6b\x0e\x75\x24\x3a\xcf\x0e\xb8\x8f\x1f\xad\x3c\x63\x4a\x52\x10",
    },
    {
        ECC_NISTB233,
        true,
        "\x01\x4d\xe1\xfd\x44\xd1\x2b\xb5\x91\x59\x81\x91\x6f\xb0\x59\x08\x3f\x78\xcd\xb7\xf8\xa9\x1b\xc0\x4f\x2d\xf3\xb4\x78\x9a",
        "\x01\xd2\x0c\xd7\x6d\xbc\x57\x5e\x56\x44\x96\x5c\x25\xf4\x4e\x8e\xe9\xf7\x64\x71\xe9\x65\x04\x21\x10\x78\x59\xc7\x0b\x9c",
    },
    {
        ECC_NISTB233,
        false,
        "\x00\x16\xcb\x97\x4e\x58\x51\x2c\xda\xb6\x0a\xed\xd0\x60\x06\x77\xa8\x4f\x9a\xc5\x74\x9e\x82\xad\xa9\x19\xec\xe6\xf6\x46",
        "\x01\x74\x00\x48\xad\x84\x30\x7d\xb2\x86\x05\xe0\x90\xed\x22\x1e\x78\x5e\x12\x5f\xd6\x75\x61\xc0\x38\x83\x9e\x7c\x7b\xbb",
    },
    {
        ECC_NISTB283,
        true,
        "\x04\x3f\xd5\x38\x96\x83\x44\xd4\x44\x57\x51\x9d\x2e\xfd\xc7\xfb\x55\x82\x7b\x1d\x72\x33\x83\x59\xbb\x00\xf6\x52\xd1\x09\x9e\xb5\xff\x8d\x76\x36",
        "\x04\xd3\xbd\x0c\x8d\x2c\x34\x07\xa1\x22\x20\xfc\xb0\xd4\x6f\x25\x27\x76\xf2\xd0\x1c\x6a\x75\x03\x10\xca\xa6\x35\x3d\x25\xce\x95\xa4\xeb\x71\xce",
    },
    {
        ECC_NISTB283,
        false,
        "\x04\xcf\x25\xc4\xf7\x5e\xb0\xe4\x9a\x30\x95\x21\x15\x1f\xf8\x57\x67\x7f\x68\xcb\x71\x35\xbe\x63\xd8\x46\xea\xeb\xea\x46\xd6\x54\x6d\xaf\x93\x14",
        "\x05\xe8\xe6\x93\xe0\x1e\xed\xca\x89\x32\xa0\x3e\xc6\x60\x7d\xc5\x9f\xf7\x55\x1f\x7d\x3c\xb2\x40\xbf\xff\x23\xc8\x38\x14\xdf\x5a\xb4\x47\xbb\x1c",
    },
    {
        ECC_NISTB409,
        true,
        "\x00\x38\xce\xa2\xe0\xe0\x85\x3a\x4f\x80\x09\x4c\xe6\x97\x17\xd1\x75\x81\xff\xdb\x3f\x07\x2c\x5b\xf0\xad\xe9\x69\x3b\x2d\x41\xa2\xee\x3b\x1b\x02\x3e\xeb\x8a\xf8\x91\xd2\x6b\xad\xa8\x00\xea\x8c\x76\x2a\xea\x91",
        "\x00\x0a\xc7\xde\x55\x7f\xff\x03\x3c\xd0\x46\x74\xb0\x88\x3d\x65\x95\x7a\x38\x88\x33\x99\x1a\x18\x7e\xa5\xe5\x3a\x91\x84\xd4\xe8\x5c\xb5\x8e\x94\x28\x2d\x7e\x38\x1c\xf2\x67\x23\xa0\x64\x7f\xf5\x29\xf2\xb6\x1d",
    },
    {
        ECC_NISTB409,
        false,
        "\x01\x8e\xbf\x4f\x8e\xee\x41\xfa\x85\x54\xb6\x87\x31\x71\x5d\xb8\xcf\xa0\x07\x25\x05\x23\x13\xff\xc4\x7a\x7f\xbf\xfc\xda\x15\xca\xe8\x45\xb9\x8e\xc7\x4a\xe2\xef\xe4\xb7\xfd\x27\xc4\x99\xa7\x20\x85\x5d\xb9\x7e",
        "\x01\x65\xb6\xa9\xb0\x0a\xae\xee\xbd\x49\x6f\x11\x14\x47\xf4\xfc\x6e\x77\x0c\xff\xf9\x7a\xcd\xb9\x97\x33\x19\x52\x8d\xb3\x9f\x0c\xa6\x91\xc0\xb3\x21\x21\x92\x70\xbf\xcd\xe7\x7d\x4b\xcd\x10\xeb\x04\x13\x4b\x71",
    },
    {
        ECC_NISTB571,
        true,
        "\x03\x62\x0b\x1f\xf0\xa1\x9a\x5c\x41\x4f\xe8\x9a\xe0\xc7\x08\xe0\xc2\x7e\x98\xc7\x00\x49\xe0\xc1\x78\x51\x56\x18\xba\x60\x9b\x44\xed\xeb\xa3\x9a\x67\x8b\x87\xa6\xa3\xe4\x65\xdc\xb3\x32\xd7\x43\xee\x21\x63\x98\xe5\x6a\xb3\x28\x05\xfc\x0f\x24\xa1\x2e\x73\xb9\x9c\x0b\xf8\x7a\x6e\xce\x88\x5f",
        "\x05\x11\x64\x35\x90\x81\x48\x5a\x21\xab\xaf\x38\x6a\xa1\xdb\xe1\xe2\x3d\x98\xe6\x66\xea\x5e\x62\xb7\xac\xa8\xe9\xc7\xf7\x38\x91\xbf\x86\x3c\x51\xd7\xb7\xea\xb8\x89\xa7\x8f\xe4\xb9\x12\x12\x2d\x39\x26\xf8\x8d\x63\x5b\xc3\x37\x45\x91\xf3\x8b\x70\x79\x6b\xd7\xfe\x0f\x17\x3c\xd9\xf8\x2e\x56",
    },
    {
        ECC_NISTB571,
        false,
        "\x01\x07\x01\x6b\x13\xb8\xd4\x70\x06\xd1\xe0\xcd\xf1\x1d\xdf\x93\x4e\xdb\x57\xff\x18\x7f\x1b\x4a\x60\x9a\x72\x70\xca\xa0\x89\x66\xc1\x0a\x0d\x07\xe6\xa0\x15\x18\x30\x58\x4f\x1e\x0b\x75\x6a\xb1\x28\xf0\x3d\x25\xb2\x45\xac\xc0\x97\x78\x56\x43\x60\x16\x70\x1d\x21\x02\x19\xde\x69\x1d\x51\xd9",
        "\x00\x7d\x14\xfa\x71\xc8\x3d\xa6\x84\xb9\x15\x3a\x5b\x6d\x3d\x5d\x29\x30\xd3\x2e\x45\x5c\xce\x8e\x53\xf6\xae\x6c\x48\x51\x3e\x50\xdd\xee\x13\x23\x61\x8d\xb5\xf4\xd0\x4c\x80\x34\x88\x5d\xc1\x04\x67\x0b\x9d\x0c\xff\x91\xf1\xba\x9b\x9a\xaf\x55\x59\x57\x60\x26\x51\xff\x30\x72\x12\x3b\xb5\xb8",
    },
    {
        ECC_NISTK163,
        true,
        "\x00\x58\x6a\x4f\x27\xfc\x00\x28\xd3\xd6\x70\x4c\xc7\xd3\x4f\xf6\xf1\xe8\x39\x06\x53",
        "\x07\xe5\xb2\xd1\x7f\x8b\x71\xa0\x65\xff\x6c\x44\x17\x9a\xaa\x0b\x17\x28\x70\xc5\xe9",
    },
    {
        ECC_NISTK163,
        false,
        "\x07\xa7\x28\x43\x13\x9e\xea\xe1\xbb\xdf\xee\xcf\xf6\x40\x5a\x98\xab\xb9\x90\x2f\x49",
        "\x06\x2c\x85\x6f\x2d\xa2\x23\xdd\x9f\x48\x5a\xa4\xd4\x4f\x99\xe5\xac\xb4\x10\x14\x39",
    },
    {
        ECC_NISTK233,
        true,
        "\x01\xc8\x00\x4a\x0e\x48\xed\x3b\x1d\x5c\xc5\x26\x9a\xa4\xed\x80\x40\xb8\xce\x65\xed\x9e\xd8\x59\x57\x41\x5c\x72\x73\x75",
        "\x00\x69\x02\xb5\x9d\xb2\xc3\x6f\xdd\x56\xb2\x88\x23\x7c\x8f\xe9\x45\xa2\x6f\x46\xb4\x3c\x5f\xe6\xb7\x2a\x63\x95\x59\x49",
    },
    {
        ECC_NISTK233,
        false,
        "\x01\xa6\x15\xca\x01\x5c\x5e\xd3\xfc\x91\xa6\xb2\x9c\x3a\xc3\x59\x66\xa5\xf5\x74\x40\x59\x8d\xaf\x77\x2c\xbc\x7a\x97\x6c",
        "\x01\x1c\x2c\x5d\xdd\xf5\xfc\x0c\xb0\xa9\x4d\x18\x74\x61\x01\x68\x63\x02\x8b\x01\x4a\x4f\x31\x6f\xe7\x9a\x67\x3e\xbd\x3c",
    },
    {
        ECC_NISTK283,
        true,
        "\x00\x83\x2e\x09\x97\xc9\x60\x30\x01\x5d\x66\xf9\xb3\x03\x79\x2f\xf0\x6c\x7e\x80\xcc\xf7\xd8\xb1\x7c\xfa\x24\x1f\xaa\xad\xb3\xf3\x11\xd8\xd7\x2e",
        "\x00\x83\x50\x48\x87\x07\xdf\xf3\x38\x24\x7f\xbf\x02\xcf\xda\x76\x2d\xf8\x1a\xa8\x17\x71\xf9\xf5\xc3\x7a\x6a\xfb\x1f\x2b\xf4\x1b\x8a\xe1\xe5\xda",
    },
    {
        ECC_NISTK283,
        false,
        "\x00\x6d\xe3\xf7\x47\x19\x25\x94\xe4\x78\x04\x77\xed\xfc\x6a\x2d\xdd\x63\x7f\x81\x5d\x51\x7a\x99\x85\x6b\x14\x5e\x08\x6f\x22\x99\xf3\xbb\x7d\x30",
        "\x01\xf4\xe7\x38\x79\x5a\x8f\x89\x47\xd2\x2a\x61\x7a\x6d\x4c\xc9\x3c\x85\xdb\x03\xe8\x81\xa9\xf4\xf4\x07\x34\xac\xd4\x54\xf2\x6b\x6d\xc1\xe8\x01",
    },
    {
        ECC_NISTK409,
        true,
        "\x01\xac\x8e\xa7\x1b\x2e\x5c\xec\x9d\xa5\x36\x4c\x46\xad\x98\x08\x01\x96\xdc\x0f\x3d\xa9\xc5\x98\xb8\xf9\x1f\xdc\x7c\xa7\x7e\xc7\x3d\xfb\x3a\x34\x1b\x65\x9e\x33\xe3\xda\x31\xa1\x42\xdb\x17\xdd\x73\x51\x2e\x8a",
        "\x00\x9a\x91\xa9\xa8\xf1\xcf\x78\x2e\x22\xd8\x11\x2b\x12\xd2\x2b\xf2\x66\x66\xbb\xc0\xda\xd6\x1c\x07\x85\x0c\x8f\x85\x80\x32\x7b\x78\x92\xc8\x57\x27\xcd\xf5\xfd\x8c\x5b\xd8\xcc\xaf\xdc\x7a\x6e\xc4\xb8\xd8\x61",
    },
    {
        ECC_NISTK409,
        false,
        "\x01\xdd\x59\x9a\x9f\x2e\x5f\x8f\x8b\x89\x7e\x65\xc3\x69\x9f\x60\x23\x9a\x45\x4f\xbb\x41\x5b\xd3\xa3\x7a\xe1\xbc\xc3\xf5\x83\x6a\xcd\x75\xda\xf5\x16\xc0\x69\xfe\x1c\x1b\xf5\xcf\x7e\x5b\x90\xa9\xba\xe9\x49\x37",
        "\x01\x4f\x9a\x11\x78\x46\xa7\xcd\x64\x14\x50\xf4\x3f\x06\xfc\x62\x79\xef\xe4\xd1\xd3\xb3\x3c\x0f\x50\xd5\xef\x92\xa5\xb4\x59\xd4\x32\x8d\x7d\x70\x49\x2e\xc9\x39\x88\xb4\x44\xd8\xbc\x10\x3c\xdb\xee\x07\x42\x02",
    },
    {
        ECC_NISTK571,
        true,
        "\x00\x69\x18\x36\xb9\xd8\x5e\xc3\x71\xb6\xdb\xee\x7f\xfa\x4c\x94\x1e\xe1\x3f\xd3\x69\x7c\x96\x48\xd9\x00\xc3\x13\xc9\x00\xd5\x26\x15\x1f\xb8\xc5\xba\x15\x0c\x97\xc5\xa8\xd5\x01\x73\x30\x44\xbe\x78\x7c\xb2\x42\xb6\x2a\x22\xd1\x52\x25\xe2\x46\x6f\x97\x40\xc4\xf9\xf7\x37\xbb\x81\x3b\x19\xce",
        "\x07\x43\xd2\xb6\x8b\xa2\xb9\x22\xf6\xdc\x23\x1a\x9c\xb5\xdd\x96\xff\x66\xab\xc9\xd6\xbb\x1e\xad\x15\xf1\xdb\x82\x03\xf3\x7b\x5d\xec\xb7\x18\x1f\x92\x5f\xc8\x11\x6f\xa9\x95\xa9\xbd\x58\x7e\x53\x3c\x22\xa4\x06\xee\xc6\x0f\x8c\xe8\xc5\x26\xbc\xed\xdb\x6f\x9c\x21\x22\xa1\x6b\x4e\x6e\x31\x24",
    },
    {
        ECC_NISTK571,
        false,
        "\x04\x59\xd8\x27\x5f\x09\x43\xfb\xc4\x33\xfe\x6d\x52\x6b\xa3\x74\x02\x30\x4c\xde\xfa\xc9\xcf\xd0\x26\x0b\x2b\x98\x5c\xf6\xaa\x4b\x1e\xe7\xf8\x51\x23\x90\x06\xc6\xf3\xd1\x7b\xf6\x42\x1b\x4b\x7e\x01\xa6\xda\x3c\x88\x06\xea\xcb\xd8\x8f\x6c\xf5\xeb\xe2\x14\xb6\x1a\x21\x30\x3f\xfa\xcb\xab\xc1",
        "\x03\x16\x44\xba\x05\x27\xba\xdb\x4d\xb7\xc2\x35\x85\x44\x8c\xd3\xda\x35\xa0\x42\xfb\x5e\xf0\x2f\x3d\x6a\x42\x20\xe0\x26\xf8\x1a\x12\xb0\x92\x2a\xe0\x68\xd3\x80\x1c\xcc\xc5\x5a\x81\x21\x38\x6c\x67\xc0\xd7\xa5\x0b\x3c\xeb\xa5\x7c\xcb\x56\x11\x9e\xff\x2b\x22\x1e\x24\x61\x63\x65\x79\x41\xed",
    },
    {
        ECC_NISTP192,
        true,
        "\xa9\xee\x43\x65\x4c\xe0\xb4\x00\xc4\x0b\x8d\x4a\xd9\xa4\xa5\x3c\xac\x96\x62\xc5\x6f\x3c\x4b\xde",
        "\xf3\x76\xf4\x4a\x79\xc5\x0a\xc3\xfd\xfd\x25\xab\x68\x4a\xf4\x39\xb5\x93\x8b\xee\x11\xa6\x3f\x21",
    },
    {
        ECC_NISTP192,
        false,
        "\xc0\x7c\xe2\x8e\x4c\x84\x6d\x73\x27\xf0\x55\x41\x19\xdd\xb7\xe8\x65\xfa\x1d\xd4\x48\xba\x2b\x40",
        "\x33\xae\xfa\x31\x77\xb9\x99\x01\xd9\xab\x6c\x12\xeb\x07\x49\x19\x74\x20\x29\x6c\xcb\x9d\x4e\x4a",
    },
    {
        ECC_NISTP224,
        true,
        "\x7f\xb5\xf1\x88\x11\x88\x02\x2d\x9b\x0a\x8b\x80\x88\x34\xdf\xdc\x0c\x73\x88\x45\x93\x50\x98\x3e\x4a\xee\x14\x12",
        "\x66\x1c\x3e\x17\xbe\x24\xb0\x38\xb1\x53\x2d\x90\x67\x57\x47\x48\x2c\x23\x89\x11\x09\x3f\xb7\x03\x5c\xc9\xb2\xcd",
    },
    {
        ECC_NISTP224,
        false,
        "\xc0\x17\x95\xa0\x01\xb6\xb8\xa5\xb3\xdb\x9a\xcb\xdb\x55\xc2\xf9\x7f\x4a\x50\xaa\x0a\x0c\xfe\xd1\xd5\x0a\x4c\x28",
        "\xb7\x9d\xbe\x52\xa4\x7a\x46\x40\x10\x0c\xc9\x39\xb4\x35\x37\x7f\x0b\xcb\x8d\xb4\xec\x52\xec\xaa\xda\xc5\xd9\x19",
    },
    {
        ECC_NISTP256,
        true,
        "\xe0\xf7\x44\x9c\x55\x88\xf2\x44\x92\xc3\x38\xf2\xbc\x8f\x78\x65\xf7\x55\xb9\x58\xd4\x8e\xdb\x0f\x2d\x00\x56\xe5\x0c\x3f\xd5\xb7",
        "\x86\xd7\xe9\x25\x5d\x0f\x4b\x6f\x44\xfa\x2c\xd6\xf8\xba\x3c\x0a\xa8\x28\x32\x1d\x6d\x8c\xc4\x30\xca\x62\x84\xce\x1d\x5b\x43\xa0",
    },
    {
        ECC_NISTP256,
        false,
        "\xf2\xd1\xc0\xdc\x08\x52\xc3\xd8\xa2\xa2\x50\x0a\x23\xa4\x48\x13\xcc\xce\x1a\xc4\xe5\x84\x44\x17\x5b\x44\x04\x69\xff\xc1\x22\x73",
        "\x32\xbf\xe9\x92\x83\x1b\x30\x5d\x8c\x37\xb9\x67\x2d\xf5\xd2\x9f\xcb\x5c\x29\xb4\xa4\x05\x34\x68\x3e\x3a\xce\x23\xd2\x46\x47\xdd",
    },
    {
        ECC_NISTP384,
        true,
        "\x6e\x9c\x7e\x92\xee\x23\x71\x3f\xab\xb0\x5d\x0b\x50\xe0\x88\xeb\x53\x4f\xd1\xe2\xb2\x57\xc0\x33\x04\xcf\xa3\x35\x98\xf8\x8a\x07\xc7\xe3\x1a\x13\xe2\x47\x07\xa7\x05\x7c\xa2\x91\x93\x23\x05\x8e",
        "\xa2\x18\xa4\x85\xe2\x2e\xae\x08\xc3\x61\x8c\xfd\x73\xbe\xfc\xfc\xd1\x3c\x3f\x19\x6c\x08\xdf\x99\xd7\xf7\x9e\xbf\xfe\x9f\x12\x7b\x89\x6a\xa0\xcb\x36\xcf\xdf\x2f\xc4\x81\x8b\x8c\xd7\x66\xf1\x85",
    },
    {
        ECC_NISTP384,
        false,
        "\xe8\x7c\xc8\x68\xcd\xf1\x96\x47\x1d\x3f\xc7\x8c\x32\x4b\xe2\xc4\xa0\xde\x8d\xbd\xe1\x82\xaf\xea\x88\xba\xa5\x16\x66\xf3\xcc\x99\x93\xea\xe5\xf1\xd6\x0d\x4a\xec\x58\x89\x4f\x03\x57\x27\x3c\x48",
        "\x18\x72\x19\xb0\xad\xc3\x98\xc8\x35\x79\x17\x98\x05\x3c\xc6\xa0\xbc\xc6\xe4\x32\x28\xac\x23\x10\x1e\xe9\x3d\xfc\xe0\xe5\x08\xbe\x98\x8a\x55\xfa\x49\x5e\xb9\x3b\x83\x20\x64\xdc\x03\x5e\x77\x20",
    },
    {
        ECC_NISTP521,
        true,
        "\x00\x89\xa5\x76\xc7\xb3\x1c\x58\x48\xaf\xb9\xea\xeb\x92\xbb\x28\xab\x2f\xc3\xbd\xd5\x83\x38\x43\x80\x51\x68\x0e\x4c\xf0\xfe\xde\x6c\xaa\x63\x13\x5f\xb7\xb6\xf5\xd7\xf2\xf0\x74\x3f\x3d\x14\x1f\xd1\xd6\x7e\xf5\x5f\x20\x0d\x9c\xfb\x5f\xa7\xef\x00\x49\x29\xd1\xb9\x38",
        "\x00\x08\x68\xb8\xe1\x2a\x14\x1d\x97\xeb\x3b\x8c\x50\x0e\xb2\x11\xd6\xe7\x0b\x66\x16\x65\xed\xca\xdb\x7a\x7f\x98\x9d\x17\x4f\xd4\xed\x5d\x14\x8f\x65\x88\x76\x91\x22\xb8\xce\x8a\x78\x4b\x30\x27\xc5\x77\x75\x20\xa2\x0a\x36\x89\x83\xb0\x17\x43\xc2\x7e\x42\xc4\x90\x39",
    },
    {
        ECC_NISTP521,
        false,
        "\x01\x65\x25\x29\x70\xb7\x86\x68\x5b\xab\xd0\x46\x3f\x73\x14\x27\x5c\x44\xac\x1b\x55\x8a\xb5\xa8\xe4\xbd\xe6\x0a\x44\x16\x23\xb2\x04\x98\x2d\xcb\xa2\xd3\xc0\xe7\xd3\x79\xd5\xb6\x37\xfd\x3e\xdc\x0b\x0d\x2e\x0b\x7a\x33\xf7\xb3\x6c\x03\xbb\x8b\xf3\xc6\xc5\x46\x9e\xbe",
        "\x01\x30\x0d\xb0\xf0\xbc\x9b\x21\xec\xff\x15\xef\xf4\xed\x3b\xbe\x3d\xc1\xac\x40\x3d\xc9\x6c\x89\x34\x4d\x00\x30\x30\x4d\xa7\xce\x57\xf1\xdc\x75\x7a\xf6\x81\x62\x79\x46\x4c\x61\xa0\xab\x33\x64\x5c\x3c\xd6\x58\x38\x42\xcf\xf0\x92\x80\x81\x66\x0b\x30\x77\x5f\x59\x4f",
    },
};

static const struct sm2_sign_test_pattern {
    uint8_t name;
    uint32_t msglen;
    const void* msg;
    uint32_t idlen;
    const void* id;
    const void* prk;
    const void* pukx;
    const void* puky;
} sm2_sign_tp[] = {
    {
        ECC_SM2,
        14,
        "message digest",
        16,
        "1234567812345678",
        "\x39\x45\x20\x8f\x7b\x21\x44\xb1\x3f\x36\xe3\x8a\xc6\xd3\x9f\x95\x88\x93\x93\x69\x28\x60\xb5\x1a\x42\xfb\x81\xef\x4d\xf7\xc5\xb8",
        "\x09\xf9\xdf\x31\x1e\x54\x21\xa1\x50\xdd\x7d\x16\x1e\x4b\xc5\xc6\x72\x17\x9f\xad\x18\x33\xfc\x07\x6b\xb0\x8f\xf3\x56\xf3\x50\x20",
        "\xcc\xea\x49\x0c\xe2\x67\x75\xa5\x2d\xc6\xea\x71\x8c\xc1\xaa\x60\x0a\xed\x05\xfb\xf3\x5e\x08\x4a\x66\x32\xf6\x07\x2d\xa9\xad\x13",
    },
    {
        ECC_SM2,
        80,
        "PUFsecurity provides PUF-based security solutions to secure the connected world.",
        12,
        "123456781234",
        "\xf1\xf3\x46\x28\x41\x06\x4f\xd4\xe9\x44\xee\x9a\xb6\xbd\x23\xdf\x5e\x5f\x2a\x1e\x03\x7c\x25\x3a\x64\x82\xfd\xb9\x55\xe4\x7a\x18",
        "\xdf\x58\x95\xbd\xbc\xac\xa2\x87\x9e\xff\x5b\xd8\xf9\x96\x10\x83\x30\xea\xf9\x7c\x27\x37\x63\xdb\x93\x64\x25\xcc\x9d\x71\xaf\x70",
        "\xb9\x8d\x3e\xe8\x4c\x7f\x59\x2b\xfe\x21\x51\x67\xa8\x3d\x33\xe0\x6a\x67\xb9\x62\x1e\xb6\xea\xab\xe0\x15\x9a\x8d\xaf\xc0\xc6\xe4",
    },
};

static const struct sm2_enc_test_pattern {
    uint8_t name;
    uint32_t ptlen;
    const void* pt;
    const void* prk;
    const void* pukx;
    const void* puky;
    uint32_t ctlen;
    const void* ct;
} sm2_enc_tp[] = {
    {
        ECC_SM2,
        19,
        "encryption standard",
        "\x39\x45\x20\x8f\x7b\x21\x44\xb1\x3f\x36\xe3\x8a\xc6\xd3\x9f\x95\x88\x93\x93\x69\x28\x60\xb5\x1a\x42\xfb\x81\xef\x4d\xf7\xc5\xb8",
        "\x09\xf9\xdf\x31\x1e\x54\x21\xa1\x50\xdd\x7d\x16\x1e\x4b\xc5\xc6\x72\x17\x9f\xad\x18\x33\xfc\x07\x6b\xb0\x8f\xf3\x56\xf3\x50\x20",
        "\xcc\xea\x49\x0c\xe2\x67\x75\xa5\x2d\xc6\xea\x71\x8c\xc1\xaa\x60\x0a\xed\x05\xfb\xf3\x5e\x08\x4a\x66\x32\xf6\x07\x2d\xa9\xad\x13",
        116,
        "\x04\x04\xeb\xfc\x71\x8e\x8d\x17\x98\x62\x04\x32\x26\x8e\x77\xfe\xb6\x41\x5e\x2e\xde\x0e\x07\x3c\x0f\x4f\x64\x0e\xcd\x2e\x14\x9a\x73\xe8\x58\xf9\xd8\x1e\x54\x30\xa5\x7b\x36\xda\xab\x8f\x95\x0a\x3c\x64\xe6\xee\x6a\x63\x09\x4d\x99\x28\x3a\xff\x76\x7e\x12\x4d\xf0\x59\x98\x3c\x18\xf8\x09\xe2\x62\x92\x3c\x53\xae\xc2\x95\xd3\x03\x83\xb5\x4e\x39\xd6\x09\xd1\x60\xaf\xcb\x19\x08\xd0\xbd\x87\x66\x21\x88\x6c\xa9\x89\xca\x9c\x7d\x58\x08\x73\x07\xca\x93\x09\x2d\x65\x1e\xfa",
    },
    {
        ECC_SM2,
        11,
        "pufsecurity",
        "\x7b\x15\x8f\xe7\xd6\xfa\x28\x32\xdc\x1d\x5f\xf0\xf2\x29\xd9\xb7\x2e\x07\xf6\x4a\x3e\x58\x51\x8b\x5d\x44\xb6\xa7\x56\x31\x3b\xbf",
        "\xf7\x25\x63\x9c\xd1\x20\x49\xa2\x07\xe8\x46\x22\x29\x05\x64\x5b\xb0\x54\x75\xf5\x74\x63\xd2\xb9\x9e\xc3\x36\x02\xe4\x92\xa3\xdf",
        "\xed\x56\xb0\x89\x41\x2d\x72\x59\xec\x73\x7f\x2b\x90\xcc\x6e\x2d\x92\xa1\xc8\x6d\x08\x74\x1d\xe1\x3a\x56\x50\x29\xa8\x3c\x89\xf5",
        108,
        "\x04\x3b\x55\x24\x67\xa7\x5c\xcc\x5a\x65\x60\x14\x5d\x5f\x1a\x8d\x48\x85\xae\x34\x39\x3f\x52\x76\x9e\xa7\x82\x07\xbd\x43\x8a\xff\xc6\x3b\x19\x04\x45\xd1\x66\x40\x1c\xf0\x42\xde\x3e\xfa\x7d\x44\x9a\xc9\x0a\xb8\x89\xce\x1a\x9a\xa9\x62\x37\x98\x64\x5a\xff\x9d\x4d\x86\x69\x18\x31\xd7\xd4\x84\x65\xf1\x6d\x26\x0d\x0c\xdf\xec\x20\x82\xe7\x54\x50\x37\x22\xe4\x01\xf3\xd0\x1c\x57\x43\x22\xa0\xae\xe7\x23\xd7\x4f\x96\xce\x5e\x10\x7d\x34\x7f",
    },
    {
        ECC_SM2,
        80,
        "PUFsecurity provides PUF-based security solutions to secure the connected world.",
        "\x25\xbf\xfd\x7f\x80\xa9\x8b\x3e\x2b\x27\x7c\x7f\xef\x44\xc7\xa1\x03\x54\xbc\x9a\xe8\xa9\x37\xf3\xf4\x3d\x0e\x7b\x9e\x18\xaa\xe6",
        "\x11\xe1\x08\x9e\xc5\x7a\x1b\xe4\xbd\xe9\xe2\x05\x25\x60\xa4\xe6\x64\x29\x0e\x15\x5d\x22\xdd\x8c\xbc\x18\x0a\x90\x8f\xf3\x32\x3c",
        "\x2c\x23\x2b\x2c\xc3\xe0\x56\x42\x2e\xca\x40\x9e\x7b\x7c\xed\x8b\x6d\xab\x7b\x7e\x19\xde\xc8\xb5\x0f\xfe\x3e\x04\x3b\x9b\xdb\x97",
        177,
        "\x04\x12\x50\x64\x87\x0e\x88\xbc\x76\xbc\xa7\x93\x8d\x1d\xe1\xf6\x1e\x4b\x54\xec\x92\xdd\xdc\x28\xc7\x9e\xac\xb1\x72\x7c\x2d\x54\x02\xed\x17\xee\x3c\xd2\x1f\x48\x8a\xcd\xb8\xc2\x97\x67\xf2\xe3\x4c\xd4\x43\xd2\x15\x7a\xb9\x99\xf6\xa9\x30\x42\x7f\x8d\x47\xa2\x64\x46\xe9\x87\x04\xe8\xc2\x82\x2a\xb2\x50\x40\x89\x11\xc3\x51\xcf\x07\xed\x1f\x76\xa2\x92\x23\x83\x5e\x6a\x69\x89\x27\xd5\xd6\xb2\xb5\x05\xe3\xf3\xd2\xfc\xeb\xc3\x35\x4c\x08\x26\xba\x97\x48\x00\x46\xd6\x1a\xfa\xd6\x6c\xd6\x3a\xa6\x5b\x17\xc2\x3e\x59\x7e\xdf\xfc\x3f\xf7\x38\xda\xf2\x1e\x01\x30\x6d\x3b\x30\x28\x17\xa3\x92\x5b\x63\x9f\xf8\xa5\xc4\xbb\x79\x8f\x50\x51\x90\x4e\xff\x64\x8b\x08\x1e\x67\x89\xd3\x7d\x3b\x3e\xfa\xe4\x62\xcc\x27\xbc\x21\x3a",
    },
};

static const struct rsa_exp_test_pattern {
    uint8_t rsatype;
    uint32_t puk;
    const void* n;
    const void* prk;
    const void* msg;
    const void* sig;
} rsa_exp_tp[] = {
    {
        RSA_1024,
        0x10001,
        "\xbb\x57\x84\x79\x4f\x27\xbf\xab\x90\xa1\x9b\xcc\x20\xbb\x10\xac\x3d\x1d\x43\x2d\x90\x65\x1d\xac\xe6\x23\x5e\x34\x56\x0a\xbd\x73\x3a\x0c\x3b\x69\x3e\xa3\x80\x27\x07\xc0\xe2\x2e\x81\x60\x3a\x6e\x2b\x82\x81\x2a\x00\x27\xec\xe2\xd9\x74\xa5\xa5\x19\x0d\xf8\x9d\x63\x6f\x7a\xb2\x00\x84\x90\x65\xfe\x41\x2f\xe8\x5e\x41\xac\xeb\x0d\x68\xb1\x0c\xdd\x07\xe4\x2e\xa1\x61\x84\xc9\x74\xf5\x8c\x10\xc5\x60\xaa\x44\x4f\x64\xb4\x1e\x93\x2a\xb2\x53\x55\x64\x8b\x51\x0b\x1f\xee\xdc\xa7\x80\xcf\xb6\x8f\x11\xac\x9f\xc9\x8a\xb1\x5b",
        "\x55\x72\x63\xea\x3e\x97\xb7\x1c\xe5\xf1\x48\x11\xb1\x26\x11\x43\x35\xf6\xb8\x52\xba\x66\xdc\x43\xa5\x8e\x21\x24\x06\xd0\x8c\x3b\x57\x91\x07\xb2\x07\x8f\x64\x5e\xa8\xf3\x29\x56\xa3\xcc\xc3\xa9\xc7\x2f\x95\x81\x16\x24\x1f\xb0\x12\x15\xd9\x8d\x75\x61\x81\x70\x61\xf6\xfc\x60\x01\xf4\x23\x71\x2f\x81\x5f\x1c\xaf\x32\x5b\xf9\x24\x05\xda\x86\x70\xc8\xac\x1b\x93\x18\x13\x40\x2d\xe1\x41\x1c\x3e\x2b\x0c\x57\x6a\x94\x37\x8b\x5c\xcf\x54\x0f\x95\xd6\x24\x00\xb9\x61\x0e\x83\x19\x0f\xb2\xb8\xdb\xf1\x3e\x83\x8b\x9f\x86\xed",
        "\x4f\x9b\xc8\xbd\x93\x6c\x03\xef\xd4\xe5\xe0\x10\x64\xff\x54\xf0\x81\x61\x87\x71\xd4\xa9\x61\xf1\x2a\x67\xa2\x78\x9a\x4f\x01\xb7\x7e\x50\x7f\xad\x82\xe7\xc4\x6b\x4c\x05\x26\x72\xc5\xa4\x7e\xb2\x6f\xc6\xc5\x6e\x44\x6c\x31\x27\x1d\xb8\xe9\xe9\x5d\x53\x34\xaa\xfe\x21\xf7\x9c\xe9\x35\xee\xbd\x1f\xb4\x01\xb7\x80\x4d\xa0\x31\x5e\x8a\xb5\x07\x49\x91\xc7\xb3\x26\x96\xa5\xd2\x66\xc9\x1a\xa2\x28\x05\xfd\x45\x88\xb7\x40\x20\x14\xaa\x00\x56\x70\x4d\x63\x11\xa3\xe2\x77\xed\x67\x7b\xb2\xcc\xd2\x2c\x44\x45\x3b\x9d\x7b\x8f",
        "\x0c\x07\xb7\x0a\x40\xe0\xf6\xc3\x94\x3c\x21\xbe\x95\x5e\x19\x6b\x09\x53\x9b\x3f\x53\x11\x64\xe5\x3c\x15\x8a\x62\x80\x93\xdb\xdf\x11\xea\xc6\x9e\x70\xa4\xcc\x3e\x32\x35\x2f\x75\x70\x1e\xd1\xbb\x0a\xfd\x68\xf6\x28\x37\x4e\x65\x8c\x9a\x40\x41\xee\x78\x13\xa9\xe5\x69\x47\x43\xa1\x76\x32\x0d\xcc\xf1\xe4\xc3\x6a\xb7\x17\xe6\xcc\x89\xbc\x62\x85\xa2\x3c\x1a\xfc\xd9\xdd\x31\x23\x27\x91\xe1\x9a\xb2\xf5\x9c\x1f\xf0\x90\x52\xf4\x59\xfc\x03\x42\xaa\xc1\x53\xaa\x0b\x06\x31\x29\xd9\xad\xff\x92\x04\x4f\x63\xd5\x09\x89\x9f",
    },
    {
        RSA_2048,
        0x10001,
        "\xbc\xf4\x2a\xb8\xac\x55\x2f\x8c\x57\xe1\xbb\x27\xc4\x66\xd5\xc8\x2d\x3f\x72\x0d\x48\xdd\x10\xfc\xd4\x36\xb5\x05\x31\xde\xd6\x14\x8d\xb6\x02\xfb\x95\x27\xdd\x16\x04\x10\x6f\xfc\xe3\xef\x24\xc8\xbf\xff\x2a\x63\x2a\x10\x6b\x15\x8c\x57\x77\x36\x36\x98\x97\x51\x8f\xa2\x65\xa9\x2c\x60\xe0\xf4\x67\xd8\xaa\x67\x57\x36\x24\x00\x0c\x52\xe8\xe0\x7b\xc9\xd8\x97\x76\x92\xe1\x55\x19\x24\x91\x9f\x0c\x1c\x42\x82\xc2\x48\x1e\xc0\x8c\xe1\x69\x1e\xf9\x13\x83\xbe\xbe\x7c\xfa\xe2\x89\x5a\x43\x2b\xbd\xd8\xf6\xb5\x96\x55\xb7\x04\x00\x32\xc3\x84\xc1\x9e\xba\x91\x50\x03\xa7\x5d\xcb\x1b\xf5\x74\x4a\x1f\x65\x27\xaa\xb1\x4e\xd4\x22\xe8\x40\x87\x63\xdb\x6f\x23\xff\x54\x67\x2d\x9d\xd3\xf5\x5f\xb6\x5c\xb5\x67\xee\x65\x15\x1d\x67\xbf\x29\x08\xe1\xa6\x0b\xcf\x1d\x4a\x78\x2e\x89\x60\xc7\xdb\x80\xff\xca\xaa\x56\x0d\xbf\xdb\x36\x14\xda\x8f\x85\xfa\x06\x11\xc7\xf3\x30\x7d\xfa\x1b\xfa\x5a\x3c\xf6\x9c\xb8\x01\xd2\x93\xe4\xb0\xe3\x4b\x4e\xc6\x12\x23\x93\x0f\xc7\x45\x61\x44\xa5\x1e\xfe\x0c\x3c\xa6\x7b\xc2\xae\xf7\xf9\x5e\xaf\x87\x0d\x63\x70\x73\x59",
        "\x53\x13\xad\x86\xe5\xaa\x4c\x8e\x11\x83\x9b\x84\x78\x0b\x58\xba\x3a\xfe\xb6\xb8\x15\x8d\xb0\xee\xe0\xa5\x2f\x00\xda\x34\xe5\xfe\x42\x72\x40\xac\x79\x9f\x7d\xca\xb4\xbd\xbf\x67\x3a\x96\x46\x1f\x87\x9e\xfa\x75\x80\x24\x98\xd8\x70\x0c\x72\xcb\x20\xc5\x05\x5e\xe4\x5e\x9c\x00\xfe\x14\x98\x43\x8d\x37\x0b\x71\x05\x3c\xb6\x26\x59\x44\xc8\xc4\x0e\x59\x28\x44\x2b\xeb\x97\x6c\x11\x72\x6d\x1e\x37\x36\x63\x9d\xd7\x2a\xdb\x6e\x80\x62\x89\x14\x07\xa2\x27\x5e\x21\xa5\x94\xaf\x2e\x81\xc3\x9f\xc3\x48\x55\xec\x6f\xed\x3e\xda\x1f\x8b\x8a\xc8\xc8\x07\xe5\xb5\xd7\xd9\x83\xd9\x4e\x0b\x83\x56\x6c\xdf\xde\xf9\x64\x0d\xb4\xe2\x57\x28\x11\x59\x0c\xd8\x97\x7f\xd6\xf3\xc2\x6d\xb8\xd4\x57\xb3\xc6\x64\xf1\x3b\x52\x16\x30\xcd\xbd\x49\xbb\x27\xaa\x8c\xd3\x19\x29\xf1\x66\x81\xbe\xc7\x59\x2d\xee\xfc\x0c\x2c\x84\x00\x1c\xa4\xf9\xd1\xc1\x92\xc1\x3e\x8d\xb6\xe4\x4e\x47\x55\x7d\x4b\x7f\x53\xdd\xb4\x88\xd3\x89\xed\x08\x4b\x20\xdd\xc3\xf7\x52\x36\x7e\xaa\x28\x24\x20\x96\x87\xf9\x24\x87\x91\x4a\xe7\x77\xb0\x92\xe5\x8a\x09\xb0\x04\x1d\xd0\xfa\x49\xeb",
        "\x6b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xba\xe4\xbb\xd0\xc3\x64\x6c\x7f\x04\xd5\x35\x5c\x5a\x10\x36\x28\xff\x3f\x06\xbe\x66\x85\x03\xf0\x29\x89\xf7\xe9\x16\x93\xaa\xcf\xe8\xe1\x1c\x9f\xdf\xc3\x17\x64\x2f\x80\xa3\x55\x19\xc8\x90\x46\x84\x04\x81\xfc\x27\x97\x91\x41\x6b\x70\x71\x3f\xca\xe1\x79\xf5\x35\x35\xcc",
        "\x1c\x3f\x6d\xae\x4a\xa8\x07\x81\x2b\xe6\xf7\x3b\xb2\x92\x44\x62\x78\xa1\x45\x77\x28\x42\x1d\x99\xc5\xe9\x1a\x94\x51\xcf\xb3\xe2\x00\x83\xf4\x74\xdc\xd3\x23\x6d\x0b\x28\xf3\x15\x18\x80\x9d\x52\x7f\xb6\x5d\xe0\x1f\x78\x53\xe9\x95\x15\x59\xda\xb9\x82\x18\x61\xfa\x4b\x78\x21\x00\x73\xc6\x39\x27\x9f\x38\x34\x24\x29\x5e\xe3\x15\xd8\xa6\x8e\xe3\xe0\x78\xbe\xc4\x20\x20\xcd\x02\x47\xe3\x8f\xac\x0f\xd3\x8f\x4b\xae\x7d\xc6\x3c\x48\x17\xf2\x7d\xcb\xd7\x23\xd3\x4c\xe0\x85\x2b\x32\x88\xc6\x6a\x25\xeb\xa6\x25\x0c\x9c\x05\xd3\xb8\x42\xdb\x71\xa2\x45\xed\x1e\x81\xc8\x97\x48\x85\x7c\x75\xe8\xc1\x71\x64\x8c\x65\xf3\x79\xb6\x71\x68\x47\x94\x88\xf3\x5f\x0b\x81\xec\x68\x1b\xe1\xae\xc4\x64\xb0\xc4\x6c\xcf\x28\xf3\x24\x5f\xc8\x9c\x46\x69\xd3\x44\x39\x9e\x81\x7e\x7b\x3e\xf1\x96\xe2\x7b\x84\xa4\xa6\x00\xf0\x61\xdd\xf1\x0a\x31\x65\x7e\xef\x68\x95\x21\x9a\x27\x6a\xa6\x7a\xb4\x8c\xf0\xb5\xc3\x2e\x19\xbb\x58\xa8\xad\xbb\x6c\x89\x29\xf4\xd8\xb7\xd5\x42\x36\x35\x6c\xde\x38\x70\x01\xbc\x05\xe1\x07\x28\x25\xe2\x28\x86\xbb\x2f\x71\x30\x16\x33",
    },
    {
        RSA_3072,
        0x10001,
        "\xb6\x59\x34\x31\x9c\x20\x60\x1d\x5f\xec\xf0\x3b\xd2\xe4\xc0\xa3\x1d\xfa\xe9\xae\x73\x1a\x7c\x41\x5b\xab\xa1\xe8\x22\x8f\x16\xff\x11\xcf\x8e\xeb\x59\x4c\xe1\x13\x81\x36\x54\xb0\xef\xd9\xd2\x82\xde\x4a\x52\xb2\xec\xbc\x20\x70\xb9\x96\x80\x94\xeb\x99\xc6\xcc\x2a\x4d\x40\xcc\x47\x7b\xa2\xd1\xc3\x24\x9c\xb6\x1d\x2e\xd1\xa9\xbd\xf2\xaa\xf0\x13\x60\x3c\xda\x49\xeb\xe8\x0c\x0a\x35\x83\x33\xf0\xda\x6d\xab\xff\xb1\x3b\x74\x39\x20\x76\x56\xf8\x89\x4a\xad\x7c\xc6\xb6\xb4\xc1\x22\xf9\x35\x5a\x62\x99\x62\x50\x4e\xea\xe3\x17\xb2\xbb\xa8\xa1\x10\x58\x2f\x95\x5a\xa6\xf4\xc4\x1c\x0b\x31\x1e\x88\x0a\xc8\x2a\xd0\x48\xb0\x85\xf1\x99\x7d\x34\x3a\x99\x54\xc6\x0d\xb6\xf0\x6a\xa0\x58\x69\x79\xad\x9c\x42\xcc\x86\x00\x3a\x40\x4a\x38\x6c\xff\x8c\x1f\x8a\x64\x4a\x8a\x4d\x36\x9a\xbc\x8d\xf4\x67\x0b\x7d\x20\xdc\x88\xd9\x85\x6a\x02\xa1\x88\x21\x68\xe1\xbc\x41\xb2\xc0\xaf\x09\xdc\x90\x6c\xfa\xc6\x2b\xf6\xca\x04\x35\x32\xc8\x38\x57\xaf\x26\xd5\xbe\x46\x84\xa2\xe7\x02\x5f\x47\xfe\x52\x46\x97\x4d\x28\xb5\xed\x7c\xd1\xab\xa8\x01\xc2\x7f\x8a\x34\x48\x91\x56\xe4\x0d\x81\xe3\xed\xeb\x52\x8a\xe4\x3e\x1d\x44\x6c\xae\xec\x20\xa5\xd1\x84\x1c\xc9\x9c\x85\x41\xd1\x4d\x28\x2b\x56\xd4\xa4\x3b\xcf\xfa\xf7\x42\x8e\x8c\x7d\xf4\x38\xc4\x8f\x70\x38\x43\xfd\x47\xaf\x29\x6d\xec\x9f\xed\xdc\x1a\xb2\xa5\xbd\xd5\x47\x83\x46\x73\xef\xe7\x5a\x07\xf0\x4b\xcd\xdf\x2b\x30\x9a\x88\x45\xbc\xbb\xde\x15\x22\xac\x27\xe0\x7a\x47\x0b\xb3\xaf\x2e\xaa\x08\xe5\x6e\x91\xbe\xbb\x7a\x9e\x78\xca\x7f\xf3\x07\xb6\xfb\xad\x11\x77\x04\x1c\xd5\x2d\xb1\x36\x3a\xa9\xf9\x54\xa0\xe2\x95\x15\x53",
        "\x15\x59\x62\x54\x00\x9c\x85\xc4\x4a\xab\xda\x00\x97\x13\x73\x3e\x65\xcf\x2f\xb6\xde\x01\x16\xd5\x2c\x1f\x6f\x28\x57\x8b\x7b\x3c\xc7\xe0\x0e\x32\x9d\xd4\xf3\x71\x2e\x2a\xa7\x45\xc3\xff\x33\xb7\x60\xc1\x40\xe7\x73\xf2\x1e\xb6\x33\xf4\x5b\xff\x93\x8a\x00\x8d\x7c\xd2\x68\xa8\xc2\x21\xc6\x91\x5a\x90\x99\xcc\x74\xa4\x3b\xa5\xec\xf8\x51\x6d\x24\x47\x9b\x38\x4f\x79\x50\x44\xc0\x99\x3d\x50\x42\x7d\xc0\x63\x67\xdf\x5f\x3f\x9f\x44\x9e\xb6\x56\x08\xf4\xf6\x54\xea\x8b\x0f\xa4\xa1\x2c\x9e\x43\x83\xd1\xc3\x81\xf5\x8b\x68\xa5\x28\xa6\xf1\xfa\x51\x88\x91\xa1\xa1\xe8\x74\x35\xd5\xb6\xb5\xbc\x86\x5f\x04\xca\x86\x72\x4c\x40\x92\x65\xcf\x13\xe3\x5c\x7a\x61\x69\xcf\xa6\x5c\x45\x83\xb4\x6d\xab\x96\xe4\xf7\x3f\x25\x1d\xac\xd3\x43\xc1\xf7\x35\x77\xa7\xe3\x50\x1a\xdb\x29\x6e\x7a\x6e\xcd\xb1\xb3\xb0\xb7\x8a\x3e\x27\x47\xa5\x61\x33\x85\xb3\xb2\x7d\xd7\x85\x7b\x41\xca\xfd\xdc\xfb\x0b\xe4\x25\xfe\xb3\x0b\x00\xba\xc0\x6b\x6a\x22\x4f\x09\x89\x86\xc6\x09\x38\xf7\x6f\x75\xef\x98\x2e\x4f\x0f\x78\x18\x0a\x5a\x6b\xa6\xdf\x0c\x14\xcc\x7e\x97\x27\x05\x97\x53\x77\x3a\x62\xe1\xc1\xca\xc3\xc4\x22\xa8\xcb\x8f\xe9\x56\x13\x5c\x17\x7f\xfc\x28\xc2\x6c\xdd\x9e\xd6\x48\xeb\xf5\xd2\x1b\x23\x82\x96\x18\x87\x9d\xc3\x78\xf3\x6a\xbe\xa7\x0a\x68\x8d\x0c\xb7\x0d\x47\x00\x6e\x97\x2d\x72\x70\x53\xa0\x5f\x35\xd7\x72\xc3\xcb\xda\x19\x40\x16\x68\x0f\x9e\x62\xf8\x4a\x61\x31\x59\x92\xe9\xbb\x6c\x79\x4d\xc5\x64\x1e\xc8\xa8\xd9\x45\xf0\x78\xab\xa2\x27\xa6\x2f\x6a\x8c\xbf\x28\x49\x2c\x4c\x75\xb9\x7a\x2d\x60\xf6\x74\x85\xbb\xc6\xb7\x01\xd9\x54\x16\xbf\x42\x66\x2d\xca\x8b\x89",
        "\x4a\x9d\x78\x75\xe0\x64\xa4\x61\xa4\x31\x34\x80\x17\x29\x04\xe7\x62\x3f\x2d\xf2\xb7\x5e\xc0\x85\x9f\xef\xe6\x2c\x66\xd3\x5b\x43\x56\x13\xd3\x2f\x9d\x91\x25\x57\xc5\x7a\x98\xf5\x34\x1e\x16\xc7\x22\x8e\x96\xf7\x31\x00\x64\xb4\xfd\xda\xc4\xd9\x2f\xde\x0b\x10\x6e\x91\x85\x10\x8b\xbf\xe7\x16\x07\x68\xe0\xfa\x61\x73\x15\xee\x02\x36\xef\x34\x57\xa4\x81\x1e\x8e\x30\x2c\x50\x4e\x79\xc7\x78\x35\x1e\xb1\xf0\x43\xf5\x7f\xb8\x7d\x64\xba\x9b\x3c\xcd\x8e\xf1\xc1\x0a\xfa\xf9\x05\x67\x3d\x79\x9e\xa6\xdd\xa6\x94\x93\x2f\x27\x5b\xf6\xff\xec\xe5\x54\x9c\x73\xd9\x9e\xeb\x39\x08\x60\x4f\x75\x62\xcc\x4f\x0c\x6f\x14\x8c\xf4\xca\x35\xdd\xc1\x78\x7e\xdd\x99\x0a\x51\xfb\x34\xae\xe4\x9c\xad\xbd\xf1\xe0\x87\x10\xca\x44\x7e\x84\x8e\x7c\xb1\x43\xd0\x63\xce\xa8\x8e\xce\x91\x7a\xdf\x00\xd2\x38\xab\x4f\xc1\x65\x20\xcd\x1d\xc9\xae\x46\xe5\xcc\x65\xad\x26\x00\x85\xf7\x04\xf3\x4e\x20\xd4\xb1\x3f\x0a\x70\x3b\x0e\x48\x79\x77\x0c\x7c\x9b\xf3\x6b\x1a\x02\x8a\xc8\xe7\x2b\x46\xa3\x8c\x42\x96\x8a\xdb\x91\x6c\xfa\x31\xc1\x15\xef\xec\x46\x06\xc3\xce\x78\x8c\xd5\x9b\x28\x51\xc6\x28\x32\x2f\x96\xcf\x28\x82\x61\x88\xb0\xf3\x30\x64\xea\x15\xc8\x61\x0d\xe0\xc9\x86\x15\x91\x6c\x6f\x9b\x18\xe8\x80\x14\x3f\x3b\x86\xd2\xd0\xc2\x38\x7d\x08\xd3\xb4\x7c\x88\x41\x8b\xf3\x6d\xb2\x30\xe4\x32\x20\x5e\xf6\xea\x03\x31\x3c\x47\xb2\x5d\x6b\x13\x92\x80\x88\xeb\x89\x15\xa6\x99\x35\xfb\x16\x95\xc0\x18\x28\x81\x15\xfc\x0a\x4c\x90\x7e\xe5\x5a\x19\x01\x11\x5b\xd1\xac\xfc\xb8\x49\x52\xdd\x20\xbe\x9d\x03\xf8\xf0\x20\xfb\xaf\x40\x39\xb2\x5f\x32\xa1\x42\xc7\x42\x5c\x24\x24\x80\xdf\x87",
        "\x28\x30\x21\x1a\xff\x31\x07\x8e\x92\x0b\x3a\x9d\x6a\x30\xe1\x51\x96\xab\x39\xc1\xdc\xe0\xb6\xc1\x76\xd8\x82\x1a\x13\xc7\x7d\xaa\x13\xd3\x60\x9e\xf7\xac\x5d\x47\x21\x33\xfc\xc3\x65\xac\xb5\x26\x72\xc0\x0f\xe8\x82\xdd\x81\x3a\xc9\xd3\xd6\x67\xbb\x0e\x7e\xc9\x42\xc6\x1e\xcc\xb3\xd9\xae\x91\xf0\x26\x18\xe1\xdb\x6f\xd0\x98\x3c\xa7\xbe\xf9\x90\x84\x3f\x5f\x3a\x99\x50\xab\xc1\x6d\xe9\xa8\x42\xd3\x7f\x8d\xe7\x8c\x68\x8c\x7d\x58\x2a\xfc\x4e\xb1\xac\xd8\xff\x3d\x65\xe3\xde\x71\x44\x90\x98\x03\x41\xf4\x36\x45\x6c\xaa\x71\x93\xed\xad\x80\xe1\x94\x1c\x48\xf7\x8a\x47\xed\x51\xd0\x93\xec\x96\x1a\xca\xa0\x3d\xab\xc2\x29\x6a\x8d\x7b\x5f\x1b\x09\x78\x93\xb6\x98\x96\x6f\x55\xc1\x97\x24\xba\x7f\xb9\x92\x23\x3e\x08\xaa\xa1\x71\x83\xb0\xdb\x51\x9f\xbc\xe2\xe2\xaf\xdb\x8d\xe8\x85\xa1\x04\x18\x6e\xee\x75\x4c\xf9\x1b\xed\x44\x68\xb6\x56\x24\x44\x3d\xfb\xaa\x33\x1d\xe5\x1e\x22\x35\xd2\xd6\x5c\x2f\x3b\x51\x0b\xfd\xa8\x0c\xd1\x4d\xa2\x5a\xeb\x8e\x60\x9a\x64\xe3\x52\x02\x63\x3e\x59\xdc\x95\x92\xeb\x29\x0f\xe1\x33\x89\xaa\x62\x24\x05\x08\xff\x84\xe4\x8a\xdc\x03\x4f\xcd\x15\x9d\x68\x2a\x1a\x05\x55\x56\xaf\xf6\x7a\xbf\x0a\x2d\x2c\x6f\xae\x3e\xb4\x3e\x38\x91\xfd\x25\xa4\xc5\x5a\x1d\x3c\x4a\x61\x7b\x7d\xf8\x94\x4e\x31\xc0\xa7\x2d\xe7\xf8\x9c\xa1\x78\x34\x64\xa1\x86\x54\xbc\xe8\x43\x85\x68\x89\x8e\x38\xce\x58\x52\xbd\x8f\xcc\xce\x5a\x92\xd2\x51\x94\xa3\x4f\xab\x12\xd5\x5f\x39\x7e\x2c\x11\x6c\x43\x94\x48\xc5\xe6\x51\x4f\x36\xa4\x2e\xe2\x77\xba\x1d\x61\x0f\x87\x5d\x2e\xa4\x1c\x8b\xa0\x8d\xd8\xd6\x84\x9c\x9d\x9f\x04\x08\x41\x72\x49\xaf\x7c\x85\xea",
    },
    {
        RSA_4096,
        0x10001,
        "\xc4\x20\xda\x40\xf5\x43\xcb\x14\xa9\x56\x8d\x32\x26\x2a\xf8\x93\xd7\x72\xa1\x60\xa4\x2c\xa6\x9a\x67\xec\xf0\x94\x46\xe2\xdb\x98\x49\x11\xd9\x35\x2f\x43\x5b\xa9\x49\x7a\x15\x7e\x83\xe7\xe3\xd5\xea\xb8\xf1\xb0\x12\x8d\x6e\x5e\x77\x19\x7b\xd8\x05\x05\xf3\x47\x3b\xed\x49\x03\xa7\xd4\x9e\x6b\xe3\x00\x7f\x72\x05\xf6\x38\xd2\x8f\x96\xb5\x1f\x98\x86\x3e\x59\xdd\x09\x96\x2d\x57\xee\xd1\xc4\x41\x55\x8e\x7b\x2f\x1c\x12\x2f\x8d\x08\xbc\xc1\x27\x90\xfa\xcf\x8f\x22\x43\x2b\x31\xd4\xbc\xb4\x99\x9d\xc1\x0d\xc6\xdd\x4e\x2f\x3a\xdb\x63\xd9\x2f\xc0\xef\x28\xbc\x2c\x4e\x21\x12\xd8\x23\x5a\x79\xda\xa0\xf0\x4f\xb4\x05\x0d\xe4\xe7\xf4\x22\x0d\x85\x3e\x83\x72\x56\x1c\x0c\x0f\x6d\xd4\x4c\xce\xd1\xc3\xb6\x79\xce\xbc\x16\x07\x1d\xc6\x27\x77\xc5\x20\xf7\x63\xdc\x3c\xf4\x78\x91\x4d\x2a\x45\x3d\xc7\x35\x06\x38\x7d\xf2\x36\x98\x63\x2c\x15\x6a\x45\x35\x5a\x06\xdd\xac\xc1\x49\x16\xf4\x58\x3b\xed\xdd\x32\x0e\x64\x78\x49\x56\xab\xbd\xea\xf8\xa7\x93\x53\x24\x9a\x9b\x62\xbf\xdc\x3f\x75\x35\xc6\x0e\xb6\x1c\xcb\x24\xd3\xa2\xad\x14\xb5\xd6\x45\x50\x55\x97\x1b\x08\xce\x48\x02\x3f\xbe\x53\x31\xfb\xbf\x18\x32\xf0\x18\xc7\xef\x82\xbb\x3b\x4b\x22\x94\x3a\x6e\xbe\x4c\x91\xce\x8c\x38\x24\x09\xb5\xe4\x8c\x5f\xc0\x9d\x17\x9a\x3b\x61\x6b\xb3\x75\x19\x6a\x25\x02\x81\x9a\x16\xf4\x0a\x19\xa4\x7f\xfa\x8b\xb7\x1d\x3c\xab\xe8\xd3\xec\xe3\x18\xd7\xbc\xce\x85\xf8\xc3\xf8\x62\x2b\x1c\xc4\x4c\x01\xda\xc8\xa2\xad\x0a\xb1\x89\x59\x44\x8e\x1a\x4a\xb8\x2a\x30\x48\x86\x65\x55\xba\xdb\x9d\x80\xc7\x97\x7e\x9f\xbb\x83\x96\xcd\xc1\x42\xca\xe0\x79\xf1\x50\x8e\x81\x0b\xd6\xe8\x4e\x39\xba\x4c\x82\xbb\xfd\xa2\x40\xeb\xa6\x53\x5f\xb0\xb2\x3b\xfb\x5f\x84\x78\x04\x43\x6f\xc9\xbb\x04\x6f\x27\x39\x01\xdd\x02\x76\x9a\x21\x2b\xe8\x01\xaf\x9c\x2e\x32\xf6\x6a\xfd\x79\x90\xde\xc3\xb5\xb8\x29\x64\x88\x6d\x48\x00\xec\x68\x17\xae\xef\x2d\x52\x5f\x8f\x3b\x88\xf5\x42\x8f\x92\x29\x8e\xcf\x22\xb8\xd9\xf7\x4c\x04\x34\xaf\xca\x05\xe2\x30\x9c\x1b\xda\xdd\x79\x36\x45\x0b\x0a\x83\xbe\x46\x74\xae\xc6\xd0\x9d\xbe\xf4\x8c\xa9\xef\x58\x6b\x78\x88\x0c\x89\xc2\x5c\x9a\x3b\x1b\x9f\x8a\x5f\x7e\xea\x85\x97\x3b\xd9",
        "\x49\xa1\x7b\xce\xbf\x45\x80\x4c\x75\x76\x84\xf3\xba\xd8\x8f\x12\x11\xe4\x7b\x29\x68\xf9\x4a\x62\xd5\x79\x62\xa8\x88\x24\x4b\x04\xd5\x09\xda\x5d\xd9\x2c\x94\x90\xed\x80\xe3\xe8\xe7\x64\x7b\x68\xa8\x02\x5e\xda\x17\x5c\xf9\x7e\x85\x80\x0f\xba\x7d\xc8\x4a\x19\x08\x2a\x81\x2a\xda\x2b\x3c\x7e\x8c\x6e\x77\x6a\x3b\x4a\xc0\xf2\x6b\xed\xcc\x79\xdc\x2d\x29\xe3\x5a\xd4\x6a\x89\x03\x66\x29\x62\x60\x94\xda\x34\xec\xee\xc0\xf5\x11\x21\xa2\x9b\x71\x5b\x40\x8e\x03\xd2\x7d\x1d\x0e\x4c\x2b\xbc\x31\x9f\xc4\x06\x84\x0e\x39\x78\x09\xc4\xab\xab\xb1\xfd\xe0\xcb\x8e\x39\xa3\xeb\x4e\xc3\xce\x21\xfd\x75\x52\xce\x65\x5d\xd4\x37\xef\x24\x15\xc7\x63\x04\x0f\x00\x12\x40\xb9\xae\xdd\x6c\x02\x34\x03\xc1\x44\x94\x91\x0e\x48\x16\x8c\xfd\x64\x93\x14\xa7\xf1\x44\x6f\x3d\x13\xb5\x44\x3e\x68\x95\xe2\x00\xdb\x74\xd0\xad\x0c\xbb\x8e\x3b\x8f\x9f\xd1\x3a\x60\x59\x33\x3f\x38\xa1\xce\xbe\xbd\xdb\x65\xf4\xb9\xcc\x3d\x2a\xa2\x15\x76\x93\x0f\x4e\xf1\x94\x00\x75\x92\xd5\x3f\x25\xee\xe0\xd0\xb3\x12\x31\xe9\xf5\x43\xf1\x73\x62\x94\x01\x92\xb1\x1f\xc3\x1d\xa9\xee\x88\x35\xf4\x8f\x92\xf5\xc9\x6a\x0f\xc6\x79\x55\x35\xbb\x35\xfe\xd4\xec\xed\x7b\xf9\x11\x85\x04\x64\xa9\x3f\xb6\x83\xa5\x3a\xf3\x9b\x18\xe8\x84\x90\xc1\xdc\x75\x36\xc3\xc9\xb1\x34\xe3\xd3\x07\xd8\x2d\x93\xd4\x9c\x97\xbb\x8a\x1d\xe6\x77\xbb\xfc\xd2\xd9\xa9\x14\x31\x32\xbb\x74\xad\x4b\xc0\x7b\xf2\xb0\x23\x83\x1c\x38\xd7\xcc\x90\x85\xd2\x27\x20\x3a\x7b\xb6\x8a\x05\x8c\x40\xcd\xf3\x50\xaf\x6e\x33\x87\xd4\x65\x41\xa5\xc0\x26\x1e\xae\x54\xdd\x2e\x71\x5a\xee\xdb\xde\x56\x24\x31\x12\x9f\xc0\xdd\x28\xa5\x96\x5e\x10\x82\xa4\x78\x0c\x85\xd2\x1e\x40\x98\x3d\x31\x04\x13\x5b\x99\x9b\x04\x4d\x50\x97\xb9\xdd\x4e\xbe\x34\x7c\x21\x89\xb7\x88\x9c\x94\x83\xff\x66\x25\x18\xfe\xc0\xe1\x31\x19\xd4\x2c\xac\x49\xf9\xd5\xfc\xde\xe7\x11\x4c\xf4\x21\x30\x0e\x3d\xed\x96\x19\x23\x9c\x6b\x92\xf5\x63\x6e\xbb\x15\x50\x76\x29\xcb\x32\x4f\xa6\xf4\x8f\x5f\xbc\x5d\xd6\xb9\xbf\x20\xc7\x76\xd2\xa6\x05\x53\x7a\xc5\xc6\xf5\x6e\x68\x2c\x0a\x14\x2e\x9d\xd8\xfe\xae\x72\x3b\x0b\x21\x06\xce\x12\xe3\x40\xe9\x13\xaa\x06\xf7\xea\x58\x19\x34\xdc\xaf\xb1",
        "\x6b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xba\xac\x2d\xa8\xbe\x04\xcf\x41\xe6\x9c\x57\x66\x13\x3c\x80\x32\x94\x0c\xce\x98\xe9\xfc\xe2\xc9\x2a\x83\x8f\xa2\xec\x3a\xd1\x36\xc2\x9d\x04\x40\x54\xc4\x66\x32\x99\xf3\x09\x5e\xaa\xfd\x75\x1e\xc4\x16\x34\x52\x83\x75\x33\x70\xa4\xec\xe0\x11\x22\x6c\x9b\x8c\xf7\x35\xcc",
        "\x15\xda\x45\x2a\x02\x5d\x7c\xcf\x78\xfe\xad\x7f\xf8\xf3\x99\xb0\x14\xd4\xbd\x0c\x51\xdd\xe7\xe2\xba\x72\xef\x35\x2c\x3d\x80\xd7\xc6\x75\x2b\xd7\x50\x92\xd0\x8d\x4b\x02\xee\x48\x0e\x5c\xed\x7f\xc4\x49\x55\x6e\x20\x63\x5d\x05\xc8\xae\x3b\x67\xbe\x03\xa6\x00\x74\x6e\x82\x6f\x91\x6a\xf2\x46\x1b\xa8\x76\x63\x4d\x37\xba\x12\xf8\x83\x2d\x01\xfc\x8a\x4b\x37\xf1\xc5\x36\x06\x86\x12\xee\x5b\x11\x29\x3b\xf9\x11\xfc\x7c\xc7\x56\x5e\xa1\x7e\x68\xdd\x01\xb6\x9d\x80\x80\x1f\x3a\xb1\x32\xb6\x21\x9e\xdd\x4f\xed\xbb\x62\xa4\x6c\x8c\x2d\x11\xb7\x61\x94\x30\x2a\xc4\xee\x3b\xb5\x83\xc8\xcc\xe8\x2b\x5c\xcb\x34\x0f\xb7\xa5\x28\xdf\x3d\x34\x32\x79\x1c\x66\x58\x59\x2f\x29\x75\xdf\xe9\xec\x17\xe4\x78\xcc\x8b\x40\xc8\x9e\x99\x84\x24\x9e\x7c\x82\x2e\xe1\xbd\xd3\xdc\x7c\xa2\x1b\x2c\x98\xf5\xbf\x68\x9b\x22\x2c\x9c\x97\x02\xcf\x1d\x7f\x48\x19\x66\x07\x5e\x3f\x65\x9e\xe8\xf8\xb4\xe9\x37\x9c\x11\x06\x4b\xad\xd6\xfb\x49\x5b\x87\x13\x61\x7f\xef\xfc\xe5\x29\xd8\x32\xc8\x81\x49\x0e\x46\xa5\x46\xf0\xe5\x11\xf6\x06\xb9\xc1\xee\x9f\x04\x8c\xcb\xe9\x0a\xdf\x68\x5d\x24\x4b\xe1\x16\xc3\xaa\xe5\x2b\xfc\xb6\x81\xe7\xe6\xbe\xa1\xb2\x1b\x16\xbf\x74\x9c\xc9\xd6\x81\x6c\x10\xc8\x52\x85\xfe\x9f\x13\x50\x5d\xaf\x9e\x86\x0e\x97\x0d\x15\x71\x98\x3a\x2c\x02\xc4\x57\x75\x35\x4b\x86\x8c\xcc\xed\x88\xc4\x68\x73\x0f\x16\x5b\xb1\xaa\xa6\x1d\x8b\x77\xa1\xed\xec\x1b\x7a\x69\x28\xc9\x30\xd1\x44\x96\x76\xb3\xe7\x18\x5d\x8b\xa4\x13\x85\x8c\x0a\x2e\x38\x99\x41\xd3\xb4\xad\xa5\x2f\xd5\x1a\xc4\x2b\x69\x26\xd7\x6b\xcb\xe9\x80\x51\x31\xa1\x6e\xe2\xd3\x80\x27\x3c\x00\x49\x5a\x79\x81\x42\xe9\x41\x4e\xbc\x0a\x33\x75\xb4\x72\x87\x30\x49\x20\xb7\x35\x8e\xce\x1e\xf0\x47\x88\x93\xb8\xf5\x3f\x3c\x37\xbb\x59\x65\x73\xf4\x3a\x18\x95\x04\x5f\x7d\x5f\xba\x27\x84\x1e\x9d\xbd\xbc\x4d\x20\xc3\x51\xee\x1c\x15\xb5\x7b\x6a\xda\xff\x59\x1e\x95\x05\x0b\x54\x1c\x9e\xc3\xc7\xd8\x85\x1b\x9d\x8d\x8c\xdf\xe8\x1a\x6a\x07\x8f\xab\xfa\x25\xfc\x0a\xe2\x84\x90\x79\x92\x64\xc4\xfd\xc2\x68\x6e\xa3\xed\x18\x48\x8a\x2c\xff\xec\x35\x8b\x46\x51\xe8\x7c\x94\xcc\xb5\x9c\x02\xd7\xf5\xf7\x49\x0b\x5b\x52\x62\x4c\x26\xdb",
    },
};

static const struct rsa_x931_test_pattern {
    uint8_t rsatype;
    uint8_t hash;
    uint32_t puk;
    const void* n;
    const void* prk;
    uint32_t msglen;
    const void* msg;
    const void* sig;
} rsa_x931_tp[] = {
    {
        RSA_2048,
        HASH_SHA_224,
        0xf3e7af,
        "\xa6\x74\xf0\xf2\xa0\x1f\xa0\xa9\x87\xd0\xef\x35\x5f\x36\xcb\xd7\xed\xa5\xa9\x31\xd5\xec\xa3\x0b\x18\xfc\x23\x7a\x48\x1f\xce\xa4\x35\xfe\x51\x41\x66\xdb\x87\x7c\xa1\xe6\x45\x20\x4b\x0e\x1e\x2a\x8e\x5f\x7f\xcf\x28\xa9\x83\x06\xc7\x04\x24\xf0\xf4\x02\x5c\x7d\x8c\x6d\x89\x06\x3a\xc7\x84\x7b\xf5\x2e\xb1\xf2\x85\x2b\xdd\x5c\xc0\x3c\x1c\xbf\x63\x87\x5b\x50\x62\xf4\xd2\x2b\x29\x05\x26\xa5\xfe\xcf\xe3\x43\xd3\x9c\x3b\x46\x62\x6b\x63\xe9\x16\x70\x80\x2b\x4d\x7a\x06\x69\x73\x47\x4a\x75\x7d\x3e\x59\x57\xdd\xc0\x20\xaf\xdd\xbe\xef\x96\x36\x43\xb2\x37\x65\x1f\x7b\xd5\x8d\x9a\xf4\xea\x67\xda\x7d\xe5\x62\x05\x39\xfb\x90\x4c\x5a\x02\x43\x38\x84\x98\x01\x34\x70\xde\x77\x7c\x8f\x11\x92\x4a\xdd\x97\xfa\x1f\xb1\x1b\x51\xca\xb4\x6e\xa3\x8a\xdf\x99\x5a\xd5\xef\xd0\x95\x8a\x98\xcb\xf0\x22\xdf\xb0\xd4\xb1\x28\x91\x7e\x4b\x51\x3f\x12\x06\x29\x05\x13\x07\xb4\xd9\xd1\x01\x4a\x28\xc5\x5c\x93\xaa\xff\x59\xf4\x7a\x7c\x04\x72\xa8\xb7\xa1\xad\x5d\xbf\x07\x25\x2c\x4b\x26\x02\x27\x8f\xe1\x8a\x77\xec\x8a\xcb\x87\x98\xf9\xf8\xb7\x20\xda\xfe\x03",
        "\x19\xf9\x64\x1e\xcc\x4e\x21\x40\x5d\x23\x85\x42\xfc\x63\x3a\x35\xa3\x3f\x3d\xdc\x84\xdf\xb8\xdc\x00\x0c\x27\xbd\xfb\xb5\x12\x8c\x0a\xe3\xb5\x61\xca\x61\x5a\xab\xf7\x22\x38\x24\xd6\x41\x5a\x8a\x62\x85\xca\x78\x16\x83\xaa\x76\xab\x9c\x85\x42\xdc\x02\xbc\x50\xce\x60\x77\x02\x46\xfa\x56\x5a\x19\x75\xf6\xce\x50\x8d\x3c\xfc\x30\xb2\x4b\x7e\xcc\xc0\x21\x83\xc5\xbf\x6a\x9b\x79\x00\xd6\x21\xcb\x3e\x97\xfe\x57\x03\x15\x74\xab\x9e\x54\xb0\xeb\x20\x40\x41\x52\x62\xcb\x7f\x35\x4e\x03\x2c\x39\x45\x3a\xc3\x8c\x51\xd9\xf9\xd9\x8b\xcc\xde\x0b\x86\x6d\x5b\xbb\x40\x13\xb8\x40\x54\xd5\x5e\xcf\x86\x77\xa3\xaf\x73\x08\x89\x8e\xf0\x3d\x30\xc7\x96\xcb\x02\x0a\xab\x69\x00\x2a\xc0\x0e\x82\x0f\xd0\xbd\xb1\x76\xc2\x05\x89\xee\xe5\x72\xf8\x69\x9c\x27\x35\x3d\xea\x73\xf7\xea\x9b\x6c\x83\xa5\x5d\x05\xf7\xee\xc7\xbb\x77\x24\x4f\x11\x89\x5f\xf0\xf4\x62\x89\x3e\xad\x61\xd8\xe5\x1c\x55\xee\xa2\xff\xc5\xb5\x22\xc0\xb8\x6f\xcd\xe0\x9c\x78\x5f\x41\x85\x70\xd0\x71\xdd\xd3\x9d\x8c\x3c\x3a\x05\xd8\x0e\xf5\x1a\x08\x1e\xd3\x74\x91\x80\xb9\x73\xf2\x4f",
        128,
        "\x74\x56\x41\xb8\xda\x51\x05\x8f\x32\xf1\x70\xb0\xeb\xb8\x8b\x50\x73\x26\x63\x9d\x50\x83\xb7\xa4\x6d\xd8\xf5\x72\xb1\x3f\x65\x79\xd6\x5c\xa3\x36\x79\x2c\x52\x11\x6d\xfd\x0f\x85\x55\xbe\xa4\x80\x72\x79\x7e\x0d\xb9\x1e\x62\x30\x29\x82\x5b\x11\x5b\xa7\xf7\x5d\x5b\x3e\xb2\xea\xb6\x6a\xb3\x9a\xd4\xc7\xb6\x81\x88\xab\x4a\x4a\xe6\xac\x3c\xd6\x55\x62\x53\x27\xe5\x6e\x3d\x7d\xe2\xba\xca\xbe\xa9\x03\x58\x1b\xba\x95\x8f\xf1\x0f\x56\x4e\xed\xac\x06\xe4\x74\x78\xc5\x84\x42\x4b\xd6\xf3\x51\x48\xa2\x84\xfc\x6d\x00\x46\x64",
        "\x40\x8b\xcb\xde\x63\xbe\xfc\x59\x64\x8d\x7b\x10\xe0\xd8\x70\x95\x61\x38\x25\xd3\x14\x4f\xcd\xdd\x13\xb5\x17\x02\xf9\x94\x74\x52\xbc\x99\x0c\xbf\x6d\x7b\xdd\x5f\x7a\xcc\x7f\x17\x0b\x8d\x30\x45\x93\x52\x6b\x43\x2f\x82\x71\xd7\x07\x74\x6b\x2d\xf1\xca\x83\xc8\xe5\xdf\x4b\x2e\x6a\xa6\xce\xc9\xc0\x53\xc7\x60\xf0\x6d\x47\xe1\x42\x28\x7a\x73\x07\x40\xd6\x77\x1b\xf3\x3d\xbe\xa4\x2d\x18\x0f\x6f\x3d\x24\x8b\x4f\x56\x36\x87\x92\x09\x67\x92\x63\x21\xaa\x4d\x3d\xd2\xf0\xd2\x70\x62\xc0\x5d\x0e\x8f\xc8\x3b\x10\x21\x5b\x1f\x4b\xe8\x0a\x96\x90\x74\x71\x0f\x73\xf1\xb0\x12\x97\x87\xb3\x9c\x15\x94\x2d\x9f\x9b\x48\xa7\x2c\xc4\xe8\x12\x04\x01\xae\xb6\x02\x1a\x8d\xfa\x40\xa3\xf3\x4e\x06\x7b\x62\x27\x74\xde\x10\xd2\x12\xed\xc5\x66\x63\x78\x28\x88\x5a\xc3\x17\xd3\x32\xb3\x5b\x21\xc9\xc8\x73\x48\x99\xc1\x5a\x67\xdc\x97\xb7\x00\x45\xeb\x5b\x79\xf2\xab\xc8\xce\x1d\xa5\xc2\x1c\x04\xc8\xae\x74\xe6\x7e\x06\x4d\xfc\xd5\xd0\x4b\x37\x80\x4f\xfa\x35\xfd\xf1\xc0\xff\xfa\x95\x88\xb4\x79\x43\x55\xf2\x1f\x70\xc9\x3a\x92\x2c\x99\xc7\xa2\x68\xdc\xf6",
    },
    {
        RSA_2048,
        HASH_SHA_256,
        0xf3e7af,
        "\xa6\x74\xf0\xf2\xa0\x1f\xa0\xa9\x87\xd0\xef\x35\x5f\x36\xcb\xd7\xed\xa5\xa9\x31\xd5\xec\xa3\x0b\x18\xfc\x23\x7a\x48\x1f\xce\xa4\x35\xfe\x51\x41\x66\xdb\x87\x7c\xa1\xe6\x45\x20\x4b\x0e\x1e\x2a\x8e\x5f\x7f\xcf\x28\xa9\x83\x06\xc7\x04\x24\xf0\xf4\x02\x5c\x7d\x8c\x6d\x89\x06\x3a\xc7\x84\x7b\xf5\x2e\xb1\xf2\x85\x2b\xdd\x5c\xc0\x3c\x1c\xbf\x63\x87\x5b\x50\x62\xf4\xd2\x2b\x29\x05\x26\xa5\xfe\xcf\xe3\x43\xd3\x9c\x3b\x46\x62\x6b\x63\xe9\x16\x70\x80\x2b\x4d\x7a\x06\x69\x73\x47\x4a\x75\x7d\x3e\x59\x57\xdd\xc0\x20\xaf\xdd\xbe\xef\x96\x36\x43\xb2\x37\x65\x1f\x7b\xd5\x8d\x9a\xf4\xea\x67\xda\x7d\xe5\x62\x05\x39\xfb\x90\x4c\x5a\x02\x43\x38\x84\x98\x01\x34\x70\xde\x77\x7c\x8f\x11\x92\x4a\xdd\x97\xfa\x1f\xb1\x1b\x51\xca\xb4\x6e\xa3\x8a\xdf\x99\x5a\xd5\xef\xd0\x95\x8a\x98\xcb\xf0\x22\xdf\xb0\xd4\xb1\x28\x91\x7e\x4b\x51\x3f\x12\x06\x29\x05\x13\x07\xb4\xd9\xd1\x01\x4a\x28\xc5\x5c\x93\xaa\xff\x59\xf4\x7a\x7c\x04\x72\xa8\xb7\xa1\xad\x5d\xbf\x07\x25\x2c\x4b\x26\x02\x27\x8f\xe1\x8a\x77\xec\x8a\xcb\x87\x98\xf9\xf8\xb7\x20\xda\xfe\x03",
        "\x19\xf9\x64\x1e\xcc\x4e\x21\x40\x5d\x23\x85\x42\xfc\x63\x3a\x35\xa3\x3f\x3d\xdc\x84\xdf\xb8\xdc\x00\x0c\x27\xbd\xfb\xb5\x12\x8c\x0a\xe3\xb5\x61\xca\x61\x5a\xab\xf7\x22\x38\x24\xd6\x41\x5a\x8a\x62\x85\xca\x78\x16\x83\xaa\x76\xab\x9c\x85\x42\xdc\x02\xbc\x50\xce\x60\x77\x02\x46\xfa\x56\x5a\x19\x75\xf6\xce\x50\x8d\x3c\xfc\x30\xb2\x4b\x7e\xcc\xc0\x21\x83\xc5\xbf\x6a\x9b\x79\x00\xd6\x21\xcb\x3e\x97\xfe\x57\x03\x15\x74\xab\x9e\x54\xb0\xeb\x20\x40\x41\x52\x62\xcb\x7f\x35\x4e\x03\x2c\x39\x45\x3a\xc3\x8c\x51\xd9\xf9\xd9\x8b\xcc\xde\x0b\x86\x6d\x5b\xbb\x40\x13\xb8\x40\x54\xd5\x5e\xcf\x86\x77\xa3\xaf\x73\x08\x89\x8e\xf0\x3d\x30\xc7\x96\xcb\x02\x0a\xab\x69\x00\x2a\xc0\x0e\x82\x0f\xd0\xbd\xb1\x76\xc2\x05\x89\xee\xe5\x72\xf8\x69\x9c\x27\x35\x3d\xea\x73\xf7\xea\x9b\x6c\x83\xa5\x5d\x05\xf7\xee\xc7\xbb\x77\x24\x4f\x11\x89\x5f\xf0\xf4\x62\x89\x3e\xad\x61\xd8\xe5\x1c\x55\xee\xa2\xff\xc5\xb5\x22\xc0\xb8\x6f\xcd\xe0\x9c\x78\x5f\x41\x85\x70\xd0\x71\xdd\xd3\x9d\x8c\x3c\x3a\x05\xd8\x0e\xf5\x1a\x08\x1e\xd3\x74\x91\x80\xb9\x73\xf2\x4f",
        128,
        "\xf6\x48\xff\xc4\xed\x74\x84\x58\x03\xfe\xc5\x3b\xa8\x65\xd3\x88\x9b\x38\x92\xe4\x02\xd9\x6c\x5e\xba\x81\x46\x98\xec\x84\xb3\x2c\xe1\xd7\x68\x49\x17\xcf\xf1\x9d\x94\x2b\xa2\x78\x7a\x55\xcf\x2e\xdc\xe5\x40\xbd\xd0\x67\xdf\xaf\xc5\x5e\xb4\x42\x17\x89\x13\xc7\xe1\x64\x14\x48\x13\xf2\x44\x6d\xc4\xba\x9a\xa0\xc9\x0f\xad\x70\x86\x95\x23\x33\x04\x01\x6d\xf0\x44\x20\xb2\x7c\xd3\x1b\x08\xe2\x9f\xf9\xea\x08\x09\x65\xe7\x90\x3b\xb2\x97\xfd\xbc\x1c\xd3\x17\x41\x51\x25\x90\xc7\x30\x7e\xe7\xde\xd0\x27\x8d\x48\xc4\xfa\x47",
        "\x4d\x4e\xa9\xc7\x58\x77\x5f\xa7\xe9\x09\x77\xac\x8e\xf2\x24\x9b\xe7\xa8\xc3\xf2\x28\x8e\xf3\x6b\x59\xf9\xef\xe8\xb0\x17\x5f\x5a\x74\x05\x97\x0c\xc1\x88\x48\x20\xfc\x9a\xdb\xad\xf7\xb1\x7c\xb2\x58\x29\x3b\x0c\xfc\xea\x11\x9b\xac\xd5\xf7\xe1\xde\x4a\xa9\x97\x57\xd2\xcb\x65\xbd\x21\xf5\x8a\xda\xef\x07\x54\xbf\x84\xe8\x4d\xfc\x05\xce\x1e\xa9\xfe\x40\xdc\xb5\xcf\x82\x21\xce\x1a\x4a\x99\xac\xde\x9e\x84\xa2\x21\x4b\x7a\x3e\x57\xd7\xb9\x2d\x59\xa0\x03\xb8\x3a\xf7\xb0\x10\x8e\x9e\xe6\xc7\x35\x80\x00\x42\x44\x50\x6e\xf3\xca\xb5\xbd\x1d\xdf\xc3\x19\xa4\x74\x49\x26\x45\xb1\x81\x53\x49\xf7\x7a\x9f\x58\x1b\x5f\x1b\x84\xe5\xea\x03\xf4\x8f\x2f\x12\xff\xfe\xb6\x2e\x84\x53\x50\x94\x27\x75\x44\xda\xbe\x3e\x11\x9b\x42\xe4\x6f\x16\xf5\x79\xb3\xc4\xd9\xde\xa8\x6c\xbd\x61\x6b\xa2\xe0\x47\x06\x07\x22\x93\xcd\x7e\xab\xcd\x66\x7e\xe0\x6b\xac\xb4\x35\x00\x4f\x3e\x8b\xe9\x07\x27\xe4\x44\x16\xb6\xbe\x16\x72\xef\x46\x5e\x01\x64\x5e\xa3\x8f\x4f\x89\x9c\x6f\x6a\xc5\xf8\xc5\xc6\xce\xbd\xec\x62\x9a\x00\xdf\x53\xa9\x23\xd3\x35\x98\x21\xea\x4d",
    },
    {
        RSA_3072,
        HASH_SHA_384,
        0xebda09,
        "\x9e\xf1\x47\x70\x06\x55\xa5\x68\xcf\xff\xae\xf2\x93\xb8\x6e\x35\xf5\x62\xce\x3e\x43\x26\xbb\xa1\x1a\x04\x9f\xc4\xe4\xb7\x66\x27\x06\x08\xe1\x2d\x5f\x09\xdc\xbf\x4f\x29\x51\x31\xa8\xfb\x0b\xb5\x87\x5a\x63\x94\xbd\xf1\x29\xe3\x07\xca\xbb\x58\x61\x71\x0a\x95\x6a\xa9\x41\x15\x33\xd4\x69\x94\xb6\x78\xae\xe6\x0b\x59\x27\xd0\x65\xb6\xbc\x31\x30\xd0\xbd\x36\x13\x5a\x46\xd5\x15\x3d\xc5\x30\xe6\x19\xea\xe1\x7b\x06\xa6\xdb\x2d\x75\xa4\xb3\x1e\x32\x53\x9a\x89\xbf\x1b\x2b\x35\x0c\x7e\xcc\xc0\x2a\x57\x3a\xf7\xd0\xd3\x4d\x98\xe0\x37\x69\x83\x01\xc8\x4d\x3e\x9a\xe6\x6e\xe5\xe3\x42\x9b\xd2\x7c\x90\x81\x40\x16\x7d\x3c\x0e\xc4\xbf\x7b\x37\xa4\xeb\x60\x45\x6d\x12\x75\x2b\xee\x1e\x0a\xa7\x05\xd1\x84\xa1\x19\x17\xbf\xbe\x8a\x73\xc0\x7f\x42\xee\x19\x57\xfd\xf3\x0c\x5a\x33\x1f\x73\x35\xbf\x11\x3e\x21\x5c\x0a\x4c\x9f\x89\x09\x9b\x94\xce\x74\xed\x76\xe3\x80\xec\xc7\xce\xa2\x21\xd8\xbc\xd9\x61\xcd\x01\x47\x62\xf9\xd1\x20\x49\xd4\x28\x8f\x58\x52\x49\xc9\x53\x6c\xa8\xab\xbc\x2b\x6e\xa6\x3a\xfd\x9b\xde\xe0\xaf\xf6\xee\x91\xa2\xf3\x1c\xa8\x2a\xaa\x77\x81\x59\xfa\x8b\x9b\xd5\xe7\x22\x68\xbf\x89\xaf\xee\x45\x49\x46\x53\xde\x77\x64\x94\x8b\x9b\x87\x7f\xab\x12\x4b\x3b\x66\xcc\x4f\xf7\xfb\x56\xba\x41\x40\x93\x65\x14\x43\x6a\xed\xd2\xcd\xc3\x4c\x03\x2c\x5b\x3c\x38\x5d\xb4\xf8\xb6\x58\xed\x50\x27\x00\x1d\x90\x84\x06\x4d\xe2\xf1\x1b\xd1\x0e\xf2\xe2\x90\xe4\x21\xd3\xf8\xfd\xd2\xd2\x17\xdc\x6f\x5a\xba\x8d\x70\x9b\x6b\x25\xc1\x7c\x0a\x48\x25\xa1\xe3\x63\x30\x05\x38\x0f\x16\xf5\x16\x14\xaa\x3a\x7b\xab\x51\x69\xcf\x84\x0f\x27\x29\x19\xa2\x8a\x76\x5b\xa5",
        "\x24\xae\x1c\x4f\xc7\xa4\xbf\xe0\x11\x09\xe9\x03\xf3\xbd\x12\xfa\x87\x69\xbe\x59\xa6\x90\x22\xcc\x4f\xb6\xb4\xc5\x9f\xf6\xa1\x05\xcf\xaa\x39\xde\x08\xf7\xa1\xfe\xc3\xbb\xf5\xd0\xaf\xde\xbc\x87\xcf\x39\x4e\x5e\xaf\xfa\xef\xfc\xda\xec\x5f\x2c\xed\x1a\x48\xf1\x63\x68\x1b\x5d\x6a\x38\x91\x1e\x34\x1e\x7a\x2a\xe7\x08\x79\x9d\xe8\x3e\x64\x2c\x41\x21\x0b\x44\x9b\x14\xb8\x77\xef\xad\xc4\x6e\x56\xd9\x7e\xa3\xda\x6a\x7c\x82\xd5\x37\x30\x11\xcb\x9d\x52\x32\xc7\xce\x6a\x38\xfd\x2d\x51\x1d\xbe\x08\xa6\x7b\xae\x18\xa0\x35\x84\xcc\xd6\x3f\xa0\x8c\xcd\x59\xcf\x1f\x75\x2b\x28\xe4\xe2\x4b\x09\x73\x6a\x05\x84\x1a\x63\x47\x75\x1a\xc5\x4d\x8d\xbe\xff\x24\x51\x9b\x26\x48\xe9\x74\xd2\x58\xb6\x70\x20\x26\xfd\x04\xca\xd5\x0f\x5d\xcf\x56\xef\xad\x53\xdb\x3f\xcb\x91\x2e\x77\x81\x98\xdf\x8b\xd2\x93\x7e\xcc\xdb\x88\xea\x2c\x64\xa3\x73\x2d\x0e\xf2\x4a\xc7\xb7\xdc\x9b\x63\xf3\x1e\xfc\x68\xcf\x65\x7c\xbd\x83\xf5\x64\xfd\xe2\x8c\x92\xd2\xb1\xc7\xe5\x52\x1e\x3d\xd4\xa6\x60\xba\x80\xd7\xac\xce\xe3\x1c\x65\xd8\xb3\x72\x47\x09\x7f\x1c\x23\xf8\xdc\xfa\x2c\xb4\x95\x25\xed\xba\xcb\xf0\x5e\xf6\x69\xf7\x48\xc6\x0b\x8a\xac\x9a\x97\x23\xd2\x62\x0b\xf9\x7d\x3c\xc8\xc8\xac\x3a\xb5\xa5\x33\x71\x4b\x8a\xc7\x6f\xc3\xea\xf6\x92\x1e\xf5\xcd\x23\xb8\x47\xd3\xbc\x68\xec\x01\x9b\xe2\xfc\xc9\x32\xb8\x20\x9d\x5b\xbd\x08\xe5\xb9\x6e\x97\xd4\x48\xb6\xf4\xe1\x9d\x91\xb3\x25\xc9\x43\xc4\x3b\x65\xa4\x2b\x59\x3c\xfa\xe7\xc3\x59\x87\xd7\x39\x76\x54\x71\xa3\xe2\x76\xcf\x9e\x67\x0c\x3f\xa8\xbc\x49\xbd\x89\x17\x44\xa9\xb9\x6c\x0f\x80\x15\x81\xcc\x28\xcb\x04\xe5\xa8\x37\x33\xf9",
        128,
        "\x99\xe4\x50\x57\xcc\x7d\x26\x2a\x96\x99\xa9\x63\xe7\xf5\xea\xde\xfa\x70\xa0\x88\xd9\x7a\xca\x71\x23\xc9\x96\x23\x0d\x4d\x82\x33\xa7\x67\xc1\x15\x61\x56\xe0\x34\xcd\xf2\xa9\x42\xa6\x9c\x48\xcd\x12\x75\xac\x14\x24\xce\x30\x18\xa5\xe0\x7b\xf6\x14\xbd\xa4\x73\xeb\x87\x9a\xd9\x24\xe0\xc4\x02\xfc\xa1\xe4\xb2\xf7\xcf\x41\x2a\x24\xcb\x05\xf9\xa2\xc8\xe4\x16\x63\x82\xfe\x2c\x30\x2e\x07\x35\xed\xac\xa5\x4a\x1f\x04\x19\xb9\xab\x10\x22\x59\xe0\x76\x1e\x1a\xb8\xda\x73\xe0\x5b\x51\x2d\x92\xe5\x18\xe9\x6d\x69\x86\xf1\x9f",
        "\x3b\x1e\x37\x39\xff\x6a\x49\x8c\x51\x03\x42\x8e\x00\xcc\xfe\xb7\xd1\x57\x0b\x00\x72\x48\x4a\xe3\xef\x08\xe2\xc8\x06\x5c\xeb\xe1\x72\x21\x8b\x44\xaf\xd3\x32\x9a\xa4\x31\x30\xf7\xa7\x6a\xc0\x7f\xb3\x25\xce\x56\x3e\xc5\xbf\x75\x89\x72\xe4\xb1\x3c\xe4\x2f\x0b\x56\x9e\x9d\x4e\xfe\x53\x69\xa6\x85\x56\x37\xe9\xda\x56\x74\x80\x38\x20\x45\xaa\x2f\x73\xab\x0b\x9f\x5d\xbd\x14\x9f\x4e\xa8\x5a\x7b\x80\x47\xc1\xdc\xab\x0f\xe6\x2d\xca\xf1\x2a\x0b\x8b\xdb\x94\xec\x2f\x6e\x0a\xf5\x61\xbb\xde\x7d\xde\x9e\xb6\x2c\x14\x47\xfc\x73\x7d\xc3\x07\x4f\x0f\xe4\xb8\x91\xf2\x56\x32\x29\x47\x16\x0f\x8a\xb2\x02\xe1\x89\x62\x65\xef\x82\x32\x0f\xcd\x80\x7b\xad\x7e\xd9\x98\x9c\x1d\x63\xe0\x89\x3e\x02\xf1\x80\x4d\x31\x08\x1f\xf5\x92\x84\x55\x9e\x9d\x91\xea\xc4\xb9\x02\xe5\x12\x83\x09\xb8\x5c\xa3\x62\xbe\x24\x87\x85\xd3\x91\xab\x91\x9d\x51\xd2\x9c\xd5\xd1\xe1\x5c\x04\xcf\xb7\x4d\x40\x08\xa3\x2f\x78\x27\x3b\x6f\x08\xa6\xca\x7c\xef\xa4\xcc\xa3\x8c\x52\x46\x67\x6a\xf1\x2e\x10\x7a\xfe\x50\x5c\x97\x13\x25\x77\x47\xca\x0f\x1f\xa9\x10\x1c\x4a\xc8\xa2\xf9\xf7\xc7\x4a\x52\x5a\x7f\x3c\x15\xf4\x42\x79\x17\x75\xde\x2b\x63\x17\x29\x3b\xd2\x62\x4d\xb0\x63\xae\xcb\x65\xc2\xfb\x8d\x88\xdf\xc3\x7d\xe7\x60\x65\x59\xc7\xa3\x73\xd0\x9f\xfb\xda\xdf\xd8\x7f\xea\xf5\xf8\xcd\xa9\xe0\x22\x19\x3b\xb9\x97\x59\x10\x0e\x04\x23\x46\x57\x84\x71\x89\x19\x0c\x08\x5b\x0b\x7f\x8d\x94\x2b\xb0\x61\xa1\x5a\x23\x96\x93\x39\xd7\xb6\x22\x41\x12\xff\xe7\x2d\x5e\x43\xf4\xb5\xd2\x30\x69\xec\xad\x77\xdf\x32\xa1\x05\x15\x11\xf0\x6e\xff\x3e\xd7\xeb\x5d\x5c\x52\x9c\x2c\xd4\xce\x2f\xb1\x1d\x54",
    },
    {
        RSA_3072,
        HASH_SHA_512,
        0xebda09,
        "\x9e\xf1\x47\x70\x06\x55\xa5\x68\xcf\xff\xae\xf2\x93\xb8\x6e\x35\xf5\x62\xce\x3e\x43\x26\xbb\xa1\x1a\x04\x9f\xc4\xe4\xb7\x66\x27\x06\x08\xe1\x2d\x5f\x09\xdc\xbf\x4f\x29\x51\x31\xa8\xfb\x0b\xb5\x87\x5a\x63\x94\xbd\xf1\x29\xe3\x07\xca\xbb\x58\x61\x71\x0a\x95\x6a\xa9\x41\x15\x33\xd4\x69\x94\xb6\x78\xae\xe6\x0b\x59\x27\xd0\x65\xb6\xbc\x31\x30\xd0\xbd\x36\x13\x5a\x46\xd5\x15\x3d\xc5\x30\xe6\x19\xea\xe1\x7b\x06\xa6\xdb\x2d\x75\xa4\xb3\x1e\x32\x53\x9a\x89\xbf\x1b\x2b\x35\x0c\x7e\xcc\xc0\x2a\x57\x3a\xf7\xd0\xd3\x4d\x98\xe0\x37\x69\x83\x01\xc8\x4d\x3e\x9a\xe6\x6e\xe5\xe3\x42\x9b\xd2\x7c\x90\x81\x40\x16\x7d\x3c\x0e\xc4\xbf\x7b\x37\xa4\xeb\x60\x45\x6d\x12\x75\x2b\xee\x1e\x0a\xa7\x05\xd1\x84\xa1\x19\x17\xbf\xbe\x8a\x73\xc0\x7f\x42\xee\x19\x57\xfd\xf3\x0c\x5a\x33\x1f\x73\x35\xbf\x11\x3e\x21\x5c\x0a\x4c\x9f\x89\x09\x9b\x94\xce\x74\xed\x76\xe3\x80\xec\xc7\xce\xa2\x21\xd8\xbc\xd9\x61\xcd\x01\x47\x62\xf9\xd1\x20\x49\xd4\x28\x8f\x58\x52\x49\xc9\x53\x6c\xa8\xab\xbc\x2b\x6e\xa6\x3a\xfd\x9b\xde\xe0\xaf\xf6\xee\x91\xa2\xf3\x1c\xa8\x2a\xaa\x77\x81\x59\xfa\x8b\x9b\xd5\xe7\x22\x68\xbf\x89\xaf\xee\x45\x49\x46\x53\xde\x77\x64\x94\x8b\x9b\x87\x7f\xab\x12\x4b\x3b\x66\xcc\x4f\xf7\xfb\x56\xba\x41\x40\x93\x65\x14\x43\x6a\xed\xd2\xcd\xc3\x4c\x03\x2c\x5b\x3c\x38\x5d\xb4\xf8\xb6\x58\xed\x50\x27\x00\x1d\x90\x84\x06\x4d\xe2\xf1\x1b\xd1\x0e\xf2\xe2\x90\xe4\x21\xd3\xf8\xfd\xd2\xd2\x17\xdc\x6f\x5a\xba\x8d\x70\x9b\x6b\x25\xc1\x7c\x0a\x48\x25\xa1\xe3\x63\x30\x05\x38\x0f\x16\xf5\x16\x14\xaa\x3a\x7b\xab\x51\x69\xcf\x84\x0f\x27\x29\x19\xa2\x8a\x76\x5b\xa5",
        "\x24\xae\x1c\x4f\xc7\xa4\xbf\xe0\x11\x09\xe9\x03\xf3\xbd\x12\xfa\x87\x69\xbe\x59\xa6\x90\x22\xcc\x4f\xb6\xb4\xc5\x9f\xf6\xa1\x05\xcf\xaa\x39\xde\x08\xf7\xa1\xfe\xc3\xbb\xf5\xd0\xaf\xde\xbc\x87\xcf\x39\x4e\x5e\xaf\xfa\xef\xfc\xda\xec\x5f\x2c\xed\x1a\x48\xf1\x63\x68\x1b\x5d\x6a\x38\x91\x1e\x34\x1e\x7a\x2a\xe7\x08\x79\x9d\xe8\x3e\x64\x2c\x41\x21\x0b\x44\x9b\x14\xb8\x77\xef\xad\xc4\x6e\x56\xd9\x7e\xa3\xda\x6a\x7c\x82\xd5\x37\x30\x11\xcb\x9d\x52\x32\xc7\xce\x6a\x38\xfd\x2d\x51\x1d\xbe\x08\xa6\x7b\xae\x18\xa0\x35\x84\xcc\xd6\x3f\xa0\x8c\xcd\x59\xcf\x1f\x75\x2b\x28\xe4\xe2\x4b\x09\x73\x6a\x05\x84\x1a\x63\x47\x75\x1a\xc5\x4d\x8d\xbe\xff\x24\x51\x9b\x26\x48\xe9\x74\xd2\x58\xb6\x70\x20\x26\xfd\x04\xca\xd5\x0f\x5d\xcf\x56\xef\xad\x53\xdb\x3f\xcb\x91\x2e\x77\x81\x98\xdf\x8b\xd2\x93\x7e\xcc\xdb\x88\xea\x2c\x64\xa3\x73\x2d\x0e\xf2\x4a\xc7\xb7\xdc\x9b\x63\xf3\x1e\xfc\x68\xcf\x65\x7c\xbd\x83\xf5\x64\xfd\xe2\x8c\x92\xd2\xb1\xc7\xe5\x52\x1e\x3d\xd4\xa6\x60\xba\x80\xd7\xac\xce\xe3\x1c\x65\xd8\xb3\x72\x47\x09\x7f\x1c\x23\xf8\xdc\xfa\x2c\xb4\x95\x25\xed\xba\xcb\xf0\x5e\xf6\x69\xf7\x48\xc6\x0b\x8a\xac\x9a\x97\x23\xd2\x62\x0b\xf9\x7d\x3c\xc8\xc8\xac\x3a\xb5\xa5\x33\x71\x4b\x8a\xc7\x6f\xc3\xea\xf6\x92\x1e\xf5\xcd\x23\xb8\x47\xd3\xbc\x68\xec\x01\x9b\xe2\xfc\xc9\x32\xb8\x20\x9d\x5b\xbd\x08\xe5\xb9\x6e\x97\xd4\x48\xb6\xf4\xe1\x9d\x91\xb3\x25\xc9\x43\xc4\x3b\x65\xa4\x2b\x59\x3c\xfa\xe7\xc3\x59\x87\xd7\x39\x76\x54\x71\xa3\xe2\x76\xcf\x9e\x67\x0c\x3f\xa8\xbc\x49\xbd\x89\x17\x44\xa9\xb9\x6c\x0f\x80\x15\x81\xcc\x28\xcb\x04\xe5\xa8\x37\x33\xf9",
        128,
        "\xb1\x57\xc8\x7d\xb6\xaf\xc7\xa6\x01\xbb\x1c\x7e\x37\x1c\x33\xcc\xd8\xe0\x30\x33\xc3\xf9\x91\x4e\xfd\xee\x0e\xff\xae\xd1\xc4\x03\x6c\x71\x93\xca\xbc\xd0\xc5\x86\xd6\xd8\xf0\x83\xa9\x49\x1d\xb6\x1f\xf6\x29\x98\xa2\x31\x6c\x35\xdf\x84\x99\x7f\xca\xa2\xe5\xe9\xe2\x9c\x6c\x31\xb6\x58\xd0\x7d\xa8\x40\x23\xaa\xf1\x37\x07\xe1\xe5\xd1\x13\x6b\x78\xc3\x79\xc6\x02\x98\xe6\xf8\x3f\xa6\xaa\x23\x9a\x41\x19\x5a\xab\x2e\x31\xb3\xfe\x5a\x7d\x9d\x16\xcc\x38\x74\xb1\xd9\xb6\x53\x4e\x97\x00\x2a\xed\x94\xbf\x10\x16\xc7\x5b\xda",
        "\x1c\x4c\xe7\xcd\x53\xe9\x39\xf9\x70\xf7\xfe\x14\xf9\xc5\xb2\xf4\xa1\x1f\x00\x4d\x06\xf9\x8e\x53\x68\x32\xa8\xc6\x12\x47\x5a\xf2\x03\x2f\x32\x54\xb0\xb0\x5d\xac\x10\x53\x3a\x21\x06\xb6\x39\x5b\x91\xbd\x41\xac\xe1\xd9\xdb\xb3\x62\x39\x4e\xaa\xbd\x82\x7e\xc6\x27\x39\xf3\xb1\xa2\xd4\x97\xd0\x05\x3b\x89\x29\xc7\xf8\xa2\x5a\x6d\xd0\xc1\x6c\x8f\xdb\x5d\x7a\x9c\xa9\x56\x1d\x37\x89\x9f\x8a\x1b\x02\x40\x07\x5f\xb9\x9e\x73\xbe\x05\x56\x60\x77\x95\xfd\x8d\xf7\x1d\x1e\xc3\xec\xd7\x58\xc3\x39\xb1\xe1\xff\x56\x58\x99\x9e\x09\x69\x8c\x6e\x31\xca\x49\xd7\x6b\xcc\xd4\x41\x2d\x7b\x6f\x74\x30\x6b\x6e\x4c\x3a\x8a\x2d\xf0\xd4\xb5\xf7\xbf\xd9\xf5\xfa\x43\x0f\xa1\x56\x10\x2d\xc4\xb7\x5b\x8d\x3a\x8b\x5a\x42\xf5\x48\x92\x66\xd7\xef\x21\x68\x2f\x4c\xd5\x1a\x60\xe7\x56\xa1\xe5\xac\xee\xd3\x46\x8c\x00\xa2\x36\x9d\xcc\x45\xfe\xf2\x99\x48\xda\x54\x81\x1c\xd4\xb3\x0b\x6c\x92\x05\xd1\xfa\x24\x55\xfa\x69\x41\xa5\x3e\x64\x15\x74\x32\xfe\xb6\xd7\xde\x4d\xec\x69\x0e\x7a\x53\x47\x70\xa4\x82\xdb\x4d\x9f\xcb\xfd\x52\xd7\x34\x5a\x2e\x7a\x32\x81\x2e\x65\x16\x11\x6f\xf9\xf6\xd4\x87\xe4\x18\xc1\x55\x81\xaa\xf7\x65\xc9\x10\x10\xf6\x50\xcb\x19\xeb\xca\x57\x71\x8c\xf5\xb5\xcd\x03\xcc\x02\x7a\x87\x5c\x3d\x65\x50\x9d\xa3\xe2\x06\x95\x59\x29\x0a\xce\x29\x0e\x6b\x68\x35\x3d\x8e\x67\x16\x7f\xc0\xcb\x38\x30\xd9\xbb\x6b\x10\xd0\x17\x12\xe3\x14\x50\xe2\xbc\x06\x6b\x5e\x26\x95\x66\xce\x4c\x8e\xc2\xb8\x9c\x77\x88\x3d\x29\xe6\xab\x69\xa6\x1a\xf6\xba\x1d\xc4\xbe\x8e\x27\x75\x5b\xb0\x1a\xc9\xee\xae\xf7\x75\x52\x65\xee\x1c\x99\x7f\x13\xfc\x41\xb4\x04\xd8\x50\x22\xe4\x39",
    },
    {
        RSA_3072,
        HASH_SHA_512_224,
        0x649bcf,
        "\x8e\xf6\xf9\xbe\x76\x40\xb1\x26\x83\xc3\x06\x2a\x36\xfb\x03\x4d\x96\x85\xbe\x9b\x9b\xaa\x2f\xdb\x29\x6d\x3e\xa9\x11\x7b\xd6\x80\xe9\x6c\xb6\x56\xed\x0c\x78\xb5\x10\x94\x1e\xa4\xf9\x2e\x75\x36\x33\x5e\xd8\x34\x4f\x91\x6c\xbc\x61\xfc\x78\x50\x78\xff\x95\x32\x8f\xb0\x84\xb1\x91\x8d\x80\xf7\x0d\x10\xeb\x8f\xa1\x5c\x2d\x01\x0e\xda\xd2\xd8\x46\xd4\x08\x33\x7a\x07\x1b\x3f\xd1\xc1\xeb\x6f\x17\xd9\xea\x38\xe9\xd5\x2d\xa0\x7c\x9a\xce\x95\xda\x25\x78\x9b\x8f\x79\xf7\xd2\xed\xfc\x69\xf1\x5a\x17\xbd\x73\x99\x77\x39\xb0\x7a\xb8\xbf\x0f\xb0\x87\xd8\x2b\xd4\xfa\x43\xb6\x1c\x41\xff\xad\xe4\x0f\x89\xf6\x56\xd8\xbc\x00\x97\x30\x41\x1d\xa4\x6f\x5a\xbd\x2a\x0e\x7d\x64\x43\x33\x9b\x98\xbd\x51\x94\x79\x53\x22\x98\xe6\x32\x77\xbd\xc6\x64\x83\x95\xc3\x92\xb0\x6b\x8f\x15\xca\x98\x40\x97\x0d\x65\x60\x52\x0e\xf3\xca\x1c\x21\xcc\xc4\x30\x0f\xaa\x9a\x80\x60\xfa\x2a\x0e\x44\x99\xeb\x2e\xee\x37\x21\xa3\x1a\x9d\x55\x02\xfd\x1d\x2d\xfb\x58\xc0\x7e\xb7\xd2\xc5\x15\x40\x62\x4c\x37\x3c\xdb\x54\xb9\xad\x8f\xb7\x9b\xfe\x25\xb3\x6b\xf0\x2c\x70\x2e\xa5\xc1\xcc\x6d\x29\xed\xdc\xce\xae\x54\x9a\x88\xd4\x59\x6e\x7a\x38\x71\x52\x9e\x42\x7a\x2b\x26\xa8\x98\xb6\x0b\x58\x4f\x2b\x62\xa2\xba\x69\x67\xc0\x8a\x44\x55\x6b\xf4\x20\xd2\xb6\xc8\x22\xf3\x42\x2e\xa1\xc5\x2d\xfc\x30\xff\x30\x9e\x6b\xa3\x83\xf4\x9a\x2b\x5a\x80\xee\xc5\xc0\x9f\xef\x30\x8b\x06\xba\x8f\x84\xa1\x13\x24\xaa\x6d\xeb\xcb\xd7\x78\x89\xdd\x03\x68\xee\xb0\x98\x17\x90\xcf\xac\xea\x12\xbc\xba\x13\xf9\xdd\x41\xe5\x8d\xb1\x1c\x1d\x8d\xea\x6d\xf1\x46\xed\x5c\x27\x72\x32\xe6\x97\x17\x56\x87\xde\x1d\x29",
        "\x45\x9f\x57\x96\x35\x04\x7e\xbd\x99\x97\xd8\x05\x54\x31\x2c\x25\xab\x56\x97\xde\x43\x06\xb2\x64\x7c\x95\xac\xcf\x47\xd4\xdc\x57\xc2\xc6\xa4\x2f\x5b\xe9\xff\x9d\x8b\x47\xea\xda\x86\x6e\x76\xab\xf3\xa7\x98\x8d\x90\x53\x66\xf3\x68\xf2\xc5\x86\xc6\xae\x8d\x47\xa4\x7e\x7d\xc9\xd7\x7f\xe8\x07\x1b\x63\x9e\x2d\x96\xb6\xdc\x78\xb7\x6f\x46\xf7\x45\x07\x9e\xb7\x90\x00\xd0\xbf\x8c\x86\xff\xf0\xab\x9c\xea\x65\xe1\x8a\x64\x13\x2c\x31\xe2\x25\xa5\x63\x0e\xe0\x79\x77\x87\x80\x07\xd9\x72\xfd\x53\x43\xce\x67\x94\x2b\xee\x0e\x85\x18\x03\x79\xe8\xaf\xae\x71\x4c\x74\x99\xb5\x19\x93\x0f\x7c\x39\x12\xd3\x98\x81\xe8\x94\xef\x45\x03\x4a\xbf\x02\x6e\x54\xb0\xa7\xee\x9b\xd6\xc1\xa0\xc5\x19\x25\x1c\x38\x91\xa4\x5e\x85\x3a\x82\xa2\x0d\xa9\x3e\x9c\x48\xc6\x81\xe7\xc3\xec\x36\xf8\x69\x7d\x84\x0d\xf5\x5c\x64\x0c\x91\xae\x0e\x5c\x37\x0e\x58\xbe\xbf\xc8\xca\x1a\x6e\x5d\x68\xf8\x95\x52\xf9\x79\x6e\x7a\xab\xf6\x54\xa1\x90\x21\xfa\xc9\xde\xf3\x9a\x06\x29\x94\x43\x90\x41\x02\x7b\x8a\x2a\x89\x55\x7c\x7a\xb3\x5c\xde\x2d\x4f\x1b\xdc\xdc\x21\xab\x0f\x93\xbd\x52\x21\x77\x17\x99\x74\xf1\xec\x1a\x48\xd8\xda\x0f\xff\x78\x01\xbb\x65\x54\x8c\x78\x1a\x8f\x98\xfb\xce\xf3\x06\xa5\x47\x61\x6c\x91\xc1\x8f\x2f\x82\x50\x38\x6e\x44\xd9\x1d\x77\x36\xb3\x6a\x44\xf1\x6b\xed\x3b\x8d\x4c\xf4\x3e\x28\x6f\x7c\xbb\x6a\x7f\xe8\x23\xec\xca\xd5\x38\x21\xe2\xbc\x37\xc2\x21\xf8\x1d\x06\xdc\x80\xd7\x09\x14\xbb\x6d\x8f\x8e\xcf\xcb\x5e\xaf\xfa\xa5\xae\x70\x6f\xc9\xd1\xf5\xc0\x05\x00\x3f\xf3\x57\xe5\xff\xd0\xc9\x48\xa2\x34\xe1\x1a\xe3\xcc\xe2\x67\x4e\x70\x02\xe3\x8f\x1c\xca\x86\xa9",
        128,
        "\x88\x67\xe8\xfe\x1e\x07\x22\x3c\xe0\x8b\x78\xd4\x81\xab\x4e\xf2\x8f\x8d\xc2\x85\x48\x47\x26\xe8\xb0\x9f\xb3\xc2\xe0\x14\x7b\x2b\xa1\x23\xa0\x10\x39\xc3\xc4\xd8\x85\x32\xc0\x47\x48\xf3\x99\xa3\xc3\x18\xb0\x16\x86\xbd\x38\x54\x85\xd5\xed\x7d\x6e\x29\x03\x45\x3a\x9d\x5d\x52\x03\xb5\x00\xe6\x15\x59\xc7\xbd\x47\xd5\x58\x39\x8c\x24\x56\xbc\xc5\x6e\xd9\x55\xd9\xcf\x1b\xa0\x08\x5a\x74\xe7\x7c\x5e\x88\x8d\x21\xe7\xbf\xad\xb7\x88\xf5\xfe\x26\x58\x73\xfa\x11\x3b\x1e\x3f\xad\x63\xef\x35\xd4\x16\xa3\xf1\x55\xb1\xb4\x59",
        "\x1a\x4e\xa7\x82\xf6\x68\x5f\xef\x38\x0b\x8d\xd9\x60\xbf\x89\x4c\xbf\x3f\x52\xfe\x50\x09\x85\x24\x31\x69\x19\xfd\xfa\xce\x6c\x16\x92\x3d\x44\x2f\x43\xe1\x6a\xe9\x56\x51\x8c\x11\x1b\x0c\x1a\x55\xc0\xb1\x2e\x63\xef\x7d\x0b\x9b\xb1\x10\x89\xa0\x55\x80\xa2\xa1\x73\xba\x4f\xe8\x31\x13\x74\xb9\x5f\xd7\x38\x5a\x8d\xc2\xd9\x05\xd0\x8c\x76\x1d\x72\xa1\xf7\x15\xc6\x3e\x03\xad\xf2\x9a\x73\x83\x2d\xf5\x7c\xff\xd9\xa2\x3d\x51\x77\xb4\xd9\x99\x73\x74\x5c\x64\xbf\xcb\xb6\xf0\xc8\xee\xa4\xc0\xa9\x9a\xd4\x9a\xd2\xf5\x71\xbd\x40\x1b\x4a\x46\xad\x74\x12\xf8\xb1\xb8\xfb\xb9\xcb\x11\x3c\x92\xb9\x92\x3c\x5b\xa9\x84\x73\x4d\x02\x8f\x06\xd2\xbc\xb1\x2c\xfa\xf4\x2e\x6e\x1e\x34\x8c\x00\x8d\xe9\xa8\xd8\x94\x80\xe6\x63\x38\x0a\xbc\xfa\xa5\x18\x3f\x25\xed\xd4\x44\x31\xff\x86\x24\x1b\xc1\x96\x14\x84\xa2\x12\xc7\x60\xb4\xed\xa0\x0e\x00\x8d\x43\x58\x8b\x73\x25\x60\x88\x79\xd9\x80\x8e\x52\x47\xa4\xc2\xeb\x72\xde\x3e\x20\x36\x41\xdd\x57\x14\xd8\xbc\xc6\x07\x62\xf4\x24\x64\x79\xbd\xac\x88\x22\x60\xb4\x2c\x49\x4b\xa0\xed\x28\x6f\xa4\x2e\xb8\x1a\xe1\x7c\x66\x83\xc4\x0a\xdb\xb7\x0d\xa6\x79\x4e\x66\x57\x08\x12\x55\x72\xee\x40\x26\x7d\x08\x60\x34\xfc\xc7\x0c\x58\xd3\x7f\xd9\x55\x3b\x9c\x71\x71\x62\x70\x62\xee\x5e\x31\xd2\xeb\x1d\xf4\x73\xb8\x49\x62\xd9\x9a\xd5\x83\xae\x02\x3d\xa4\x52\x62\x3b\xd9\x44\xa5\x0f\x93\xd5\xc3\xa3\xea\xd0\x29\xfb\xbd\x4a\xa2\x0a\x67\xf8\xcb\x92\x2f\x26\x75\x11\x50\x5d\x8d\x7f\xeb\x2e\xcb\x81\x0f\x0f\xf9\xd1\xc2\x7f\x36\x1b\xc9\x79\x64\xfd\x47\xa1\x36\x5e\x78\x5a\x7c\x7e\xee\xc3\xef\xad\x30\x6c\x9d\x52\x2e\x28\x27\xac\xca\x4c",
    },
    {
        RSA_3072,
        HASH_SHA_512_256,
        0x649bcf,
        "\x8e\xf6\xf9\xbe\x76\x40\xb1\x26\x83\xc3\x06\x2a\x36\xfb\x03\x4d\x96\x85\xbe\x9b\x9b\xaa\x2f\xdb\x29\x6d\x3e\xa9\x11\x7b\xd6\x80\xe9\x6c\xb6\x56\xed\x0c\x78\xb5\x10\x94\x1e\xa4\xf9\x2e\x75\x36\x33\x5e\xd8\x34\x4f\x91\x6c\xbc\x61\xfc\x78\x50\x78\xff\x95\x32\x8f\xb0\x84\xb1\x91\x8d\x80\xf7\x0d\x10\xeb\x8f\xa1\x5c\x2d\x01\x0e\xda\xd2\xd8\x46\xd4\x08\x33\x7a\x07\x1b\x3f\xd1\xc1\xeb\x6f\x17\xd9\xea\x38\xe9\xd5\x2d\xa0\x7c\x9a\xce\x95\xda\x25\x78\x9b\x8f\x79\xf7\xd2\xed\xfc\x69\xf1\x5a\x17\xbd\x73\x99\x77\x39\xb0\x7a\xb8\xbf\x0f\xb0\x87\xd8\x2b\xd4\xfa\x43\xb6\x1c\x41\xff\xad\xe4\x0f\x89\xf6\x56\xd8\xbc\x00\x97\x30\x41\x1d\xa4\x6f\x5a\xbd\x2a\x0e\x7d\x64\x43\x33\x9b\x98\xbd\x51\x94\x79\x53\x22\x98\xe6\x32\x77\xbd\xc6\x64\x83\x95\xc3\x92\xb0\x6b\x8f\x15\xca\x98\x40\x97\x0d\x65\x60\x52\x0e\xf3\xca\x1c\x21\xcc\xc4\x30\x0f\xaa\x9a\x80\x60\xfa\x2a\x0e\x44\x99\xeb\x2e\xee\x37\x21\xa3\x1a\x9d\x55\x02\xfd\x1d\x2d\xfb\x58\xc0\x7e\xb7\xd2\xc5\x15\x40\x62\x4c\x37\x3c\xdb\x54\xb9\xad\x8f\xb7\x9b\xfe\x25\xb3\x6b\xf0\x2c\x70\x2e\xa5\xc1\xcc\x6d\x29\xed\xdc\xce\xae\x54\x9a\x88\xd4\x59\x6e\x7a\x38\x71\x52\x9e\x42\x7a\x2b\x26\xa8\x98\xb6\x0b\x58\x4f\x2b\x62\xa2\xba\x69\x67\xc0\x8a\x44\x55\x6b\xf4\x20\xd2\xb6\xc8\x22\xf3\x42\x2e\xa1\xc5\x2d\xfc\x30\xff\x30\x9e\x6b\xa3\x83\xf4\x9a\x2b\x5a\x80\xee\xc5\xc0\x9f\xef\x30\x8b\x06\xba\x8f\x84\xa1\x13\x24\xaa\x6d\xeb\xcb\xd7\x78\x89\xdd\x03\x68\xee\xb0\x98\x17\x90\xcf\xac\xea\x12\xbc\xba\x13\xf9\xdd\x41\xe5\x8d\xb1\x1c\x1d\x8d\xea\x6d\xf1\x46\xed\x5c\x27\x72\x32\xe6\x97\x17\x56\x87\xde\x1d\x29",
        "\x45\x9f\x57\x96\x35\x04\x7e\xbd\x99\x97\xd8\x05\x54\x31\x2c\x25\xab\x56\x97\xde\x43\x06\xb2\x64\x7c\x95\xac\xcf\x47\xd4\xdc\x57\xc2\xc6\xa4\x2f\x5b\xe9\xff\x9d\x8b\x47\xea\xda\x86\x6e\x76\xab\xf3\xa7\x98\x8d\x90\x53\x66\xf3\x68\xf2\xc5\x86\xc6\xae\x8d\x47\xa4\x7e\x7d\xc9\xd7\x7f\xe8\x07\x1b\x63\x9e\x2d\x96\xb6\xdc\x78\xb7\x6f\x46\xf7\x45\x07\x9e\xb7\x90\x00\xd0\xbf\x8c\x86\xff\xf0\xab\x9c\xea\x65\xe1\x8a\x64\x13\x2c\x31\xe2\x25\xa5\x63\x0e\xe0\x79\x77\x87\x80\x07\xd9\x72\xfd\x53\x43\xce\x67\x94\x2b\xee\x0e\x85\x18\x03\x79\xe8\xaf\xae\x71\x4c\x74\x99\xb5\x19\x93\x0f\x7c\x39\x12\xd3\x98\x81\xe8\x94\xef\x45\x03\x4a\xbf\x02\x6e\x54\xb0\xa7\xee\x9b\xd6\xc1\xa0\xc5\x19\x25\x1c\x38\x91\xa4\x5e\x85\x3a\x82\xa2\x0d\xa9\x3e\x9c\x48\xc6\x81\xe7\xc3\xec\x36\xf8\x69\x7d\x84\x0d\xf5\x5c\x64\x0c\x91\xae\x0e\x5c\x37\x0e\x58\xbe\xbf\xc8\xca\x1a\x6e\x5d\x68\xf8\x95\x52\xf9\x79\x6e\x7a\xab\xf6\x54\xa1\x90\x21\xfa\xc9\xde\xf3\x9a\x06\x29\x94\x43\x90\x41\x02\x7b\x8a\x2a\x89\x55\x7c\x7a\xb3\x5c\xde\x2d\x4f\x1b\xdc\xdc\x21\xab\x0f\x93\xbd\x52\x21\x77\x17\x99\x74\xf1\xec\x1a\x48\xd8\xda\x0f\xff\x78\x01\xbb\x65\x54\x8c\x78\x1a\x8f\x98\xfb\xce\xf3\x06\xa5\x47\x61\x6c\x91\xc1\x8f\x2f\x82\x50\x38\x6e\x44\xd9\x1d\x77\x36\xb3\x6a\x44\xf1\x6b\xed\x3b\x8d\x4c\xf4\x3e\x28\x6f\x7c\xbb\x6a\x7f\xe8\x23\xec\xca\xd5\x38\x21\xe2\xbc\x37\xc2\x21\xf8\x1d\x06\xdc\x80\xd7\x09\x14\xbb\x6d\x8f\x8e\xcf\xcb\x5e\xaf\xfa\xa5\xae\x70\x6f\xc9\xd1\xf5\xc0\x05\x00\x3f\xf3\x57\xe5\xff\xd0\xc9\x48\xa2\x34\xe1\x1a\xe3\xcc\xe2\x67\x4e\x70\x02\xe3\x8f\x1c\xca\x86\xa9",
        128,
        "\x17\xdd\xaa\x94\xd7\x39\x02\x8d\x28\xd0\xe1\x46\x3d\x18\xb5\x05\x8e\xb8\x5a\xc5\x7d\x9a\xe1\xe6\x3a\x42\x90\x24\xe4\x5f\x29\xc6\xf1\xa0\x70\x17\xcf\xc9\xe7\x1a\xcb\x06\xdc\x7a\x33\x7f\xa5\xc0\xb7\x2c\x2b\xc8\x15\xeb\xa5\x76\xf6\xd0\xa6\xa5\x12\xbc\x5a\x60\x9b\x31\x0c\x55\xd9\x64\xec\x86\x12\x94\x10\x42\xac\x9b\xb8\x54\x95\xc3\xd6\x7a\xe3\xda\xce\x19\xb8\x89\x7a\x2e\x69\xe1\x71\x88\xdf\x37\x89\x35\x3d\x32\x9a\x3a\xc2\x22\x85\x87\xf2\x93\x75\x29\xf0\x23\x65\xc2\x2f\x90\xe3\x36\x49\x15\x13\xa8\x2f\xf7\xf6\xa5",
        "\x02\xb6\xfd\xf2\xa8\xcc\x17\x41\xf9\x4c\xe4\x6c\xb0\xeb\x8a\x41\xae\x8d\x21\x4f\xf4\x87\x71\xc7\x16\x06\x9c\x5b\x15\x2e\x40\x2d\x44\xe2\x49\xd4\xe6\x48\x75\xe7\x68\xe8\x7d\xda\x78\x2d\x92\x19\x7b\x32\xc0\xbd\xbb\xfa\x0b\x0a\x6a\x5d\x85\x14\xdd\x20\xed\xc4\xe0\x2d\x52\x58\x57\x2a\xdf\xf5\xd6\x14\xa0\x95\x5d\xd1\x19\x31\xc1\xaa\xea\xd4\x94\x4d\xbb\x9c\xaf\xf5\x25\x36\xa5\x95\x76\x0d\x45\x4c\x32\x77\x14\xea\xc3\xb0\x25\xb9\xe0\x7a\x67\xe9\xf4\xbf\xff\x86\x39\x11\xd0\xbc\xea\x85\x5b\xec\x64\x89\x4b\xcf\xe8\x23\x22\xdf\x14\xae\xbb\x57\xe3\x92\x35\xd7\x81\xa2\x27\x62\x05\x10\x09\xdc\x24\xb4\x9d\xdc\xc5\x1b\xaa\xa1\x67\xe2\x0c\xfc\xc5\xae\xf4\xd7\x01\x8b\x58\x14\x2f\xe0\x83\x00\x09\xba\x06\x2d\x14\x11\x64\x77\xb4\x8b\x7e\x9e\x9e\x41\x4c\x1e\x57\x37\x99\x42\x22\xb2\x29\xd3\x21\xb3\x7b\x3d\x07\xaa\xc9\x91\x58\xca\xf4\xac\x06\xf8\xd9\x57\xd0\xfe\x4f\x6e\x82\x1e\x94\x14\x6a\x91\x8e\xe0\x09\x3d\x65\xab\x5a\xdf\xf6\x25\x3f\xfa\x4b\x31\x71\xe1\xb5\x6a\xa8\xb0\x65\xdd\xd6\x51\x2b\x3e\xcb\x3f\xda\x3a\x1e\x6f\x9d\x38\x44\x07\xd7\xd1\xa0\xfd\xff\x58\xb6\x9e\x4a\x29\x0c\xa3\xef\xc1\xe2\xd8\xa3\x48\xd0\x97\xfb\x7f\x84\x41\xca\x9b\xc7\x42\x4e\x26\xdf\x5f\x67\xa7\x0b\x66\x76\xd1\x56\x63\xc7\xfe\xfb\xac\x96\xf4\xf7\x06\xfb\x85\x78\xef\x96\x8c\x4c\x4f\x35\xc3\xb6\x6c\xba\x08\x77\xcf\x63\x0b\x2e\xd7\x99\x0f\x61\xa3\x9d\x1a\x15\xed\x99\x2b\xb8\x2c\x74\x69\x92\x45\x6d\x33\x7d\x70\x31\x99\xac\x89\x11\x7a\x6e\x9f\x49\xd1\xd5\xde\x20\x5c\x5a\x45\x3f\x8c\x6c\xfb\xd7\xd6\x53\xe5\x62\x40\x2c\xb5\x63\x84\xbf\x5c\x86\xbd\x4a\xf3\x92\xe6\x96\xf9",
    },
};

static const struct rsa_p1v15_test_pattern {
    uint8_t rsatype;
    uint8_t hash;
    uint32_t puk;
    const void* n;
    const void* prk;
    uint32_t msglen;
    const void* msg;
    const void* sig;
} rsa_p1v15_tp[] = {
    {
        RSA_2048,
        HASH_SHA_224,
        0x260445,
        "\xce\xa8\x04\x75\x32\x4c\x1d\xc8\x34\x78\x27\x81\x8d\xa5\x8b\xac\x06\x9d\x34\x19\xc6\x14\xa6\xea\x1a\xc6\xa3\xb5\x10\xdc\xd7\x2c\xc5\x16\x95\x49\x05\xe9\xfe\xf9\x08\xd4\x5e\x13\x00\x6a\xdf\x27\xd4\x67\xa7\xd8\x3c\x11\x1d\x1a\x5d\xf1\x5e\xf2\x93\x77\x1a\xef\xb9\x20\x03\x2a\x5b\xb9\x89\xf8\xe4\xf5\xe1\xb0\x50\x93\xd3\xf1\x30\xf9\x84\xc0\x7a\x77\x2a\x36\x83\xf4\xdc\x6f\xb2\x8a\x96\x81\x5b\x32\x12\x3c\xcd\xd1\x39\x54\xf1\x9d\x5b\x8b\x24\xa1\x03\xe7\x71\xa3\x4c\x32\x87\x55\xc6\x5e\xd6\x4e\x19\x24\xff\xd0\x4d\x30\xb2\x14\x2c\xc2\x62\xf6\xe0\x04\x8f\xef\x6d\xbc\x65\x2f\x21\x47\x9e\xa1\xc4\xb1\xd6\x6d\x28\xf4\xd4\x6e\xf7\x18\x5e\x39\x0c\xbf\xa2\xe0\x23\x80\x58\x2f\x31\x88\xbb\x94\xeb\xbf\x05\xd3\x14\x87\xa0\x9a\xff\x01\xfc\xbb\x4c\xd4\xbf\xd1\xf0\xa8\x33\xb3\x8c\x11\x81\x3c\x84\x36\x0b\xb5\x3c\x7d\x44\x81\x03\x1c\x40\xba\xd8\x71\x3b\xb6\xb8\x35\xcb\x08\x09\x8e\xd1\x5b\xa3\x1e\xe4\xba\x72\x8a\x8c\x8e\x10\xf7\x29\x4e\x1b\x41\x63\xb7\xae\xe5\x72\x77\xbf\xd8\x81\xa6\xf9\xd4\x3e\x02\xc6\x92\x5a\xa3\xa0\x43\xfb\x7f\xb7\x8d",
        "\x09\x97\x63\x4c\x47\x7c\x1a\x03\x9d\x44\xc8\x10\xb2\xaa\xa3\xc7\x86\x2b\x0b\x88\xd3\x70\x82\x72\xe1\xe1\x5f\x66\xfc\x93\x89\x70\x9f\x8a\x11\xf3\xea\x6a\x5a\xf7\xef\xfa\x2d\x01\xc1\x89\xc5\x0f\x0d\x5b\xcb\xe3\xfa\x27\x2e\x56\xcf\xc4\xa4\xe1\xd3\x88\xa9\xdc\xd6\x5d\xf8\x62\x89\x02\x55\x6c\x8b\x6b\xb6\xa6\x41\x70\x9b\x5a\x35\xdd\x26\x22\xc7\x3d\x46\x40\xbf\xa1\x35\x9d\x0e\x76\xe1\xf2\x19\xf8\xe3\x3e\xb9\xbd\x0b\x59\xec\x19\x8e\xb2\xfc\xca\xae\x03\x46\xbd\x8b\x40\x1e\x12\xe3\xc6\x7c\xb6\x29\x56\x9c\x18\x5a\x2e\x0f\x35\xa2\xf7\x41\x64\x4c\x1c\xca\x5e\xbb\x13\x9d\x77\xa8\x9a\x29\x53\xfc\x5e\x30\x04\x8c\x0e\x61\x9f\x07\xc8\xd2\x1d\x1e\x56\xb8\xaf\x07\x19\x3d\x0f\xdf\x3f\x49\xcd\x49\xf2\xef\x31\x38\xb5\x13\x88\x62\xf1\x47\x0b\xd2\xd1\x6e\x34\xa2\xb9\xe7\x77\x7a\x6c\x8c\x8d\x4c\xb9\x4b\x4e\x8b\x5d\x61\x6c\xd5\x39\x37\x53\xe7\xb0\xf3\x1c\xc7\xda\x55\x9b\xa8\xe9\x8d\x88\x89\x14\xe3\x34\x77\x3b\xaf\x49\x8a\xd8\x8d\x96\x31\xeb\x5f\xe3\x2e\x53\xa4\x14\x5b\xf0\xba\x54\x8b\xf2\xb0\xa5\x0c\x63\xf6\x7b\x14\xe3\x98\xa3\x4b\x0d",
        128,
        "\x90\x0a\xe7\xe2\xe7\xe5\xf6\x15\x75\x0c\x4e\xe4\xc1\x3c\xca\x8f\x9f\x45\x07\x14\xa6\xb2\x73\xf2\xe4\xac\xa6\x32\xd1\x1c\xf6\xa8\x82\x10\x45\x77\x1f\x60\x1e\xd3\x97\x91\x01\x0b\x92\xf9\xfa\xc6\xa8\x24\x78\x8c\xd0\x77\x5d\x89\x1b\x13\x52\x8e\xa2\xfd\x5d\x59\xbc\x7b\xb5\x16\x75\xc1\xd5\x26\x3c\xcc\xcf\x1e\xdc\x8f\xe3\x13\xae\x4d\x50\x15\x0c\x46\x6a\xf9\x08\x95\xed\x5c\x5e\x59\x91\xe4\xa8\x13\xde\xc9\xd1\x4f\x42\x94\xcc\x87\x61\x27\x86\x44\xac\xfe\x19\x86\x35\xb4\x42\x66\xc1\xc9\x15\xfa\x1f\xa2\xef\x79\xb9\xd1",
        "\x39\xc6\x48\x91\xd9\xac\x47\x41\xa5\x7d\xd8\xae\xc7\xf7\x24\x36\x13\xd1\x55\xdf\x44\x92\x81\x4b\x40\xce\xab\xee\x79\xea\xdb\x8d\x8b\xc5\xfa\x61\x1b\xde\xbe\x0e\x0d\x97\x14\xc4\x3d\x6d\x29\xef\x30\x9f\x78\x2b\xc8\xe6\x8a\x4d\x31\x7c\xe1\xec\xe4\x68\x55\x23\x05\xa7\x3d\xb9\xd0\xd2\x89\x1e\x28\x04\xf4\x20\x1b\x1b\xf8\xa3\x24\x6f\xa0\x82\xad\xde\x1f\xc9\xb3\xd2\x99\xf8\x8c\xb9\x3b\x7b\x47\xfe\x9f\x73\x13\x70\x96\xc2\xb8\xc5\x9e\xc0\x61\x2a\x08\x53\x63\xc0\x4c\xc3\x74\x76\x9a\x96\x4f\xea\xf1\xf8\xe4\x91\x38\x1e\x16\xd7\xae\x2a\x0c\x67\x2e\x69\xa3\x66\x73\x10\xfe\xed\x01\x21\x56\xdc\xa6\x30\xa6\x8d\x33\x9e\xc8\x04\x96\xc6\xb5\x94\xfe\xd1\x70\x91\xd3\xa1\xc6\xac\x3e\x4d\xa1\x41\x9b\x05\xd5\x89\xcb\x32\x46\x82\x88\xf7\xdf\x4d\xaa\xce\xff\x5a\x39\xbc\xf2\x97\xdc\x50\x8c\xe9\x54\x9f\x60\x2e\x97\x3e\xdb\xc2\xaa\x44\x33\x2e\xc3\x66\x1b\x19\xc8\xc5\x8c\x56\x16\x92\x4b\xeb\x89\x2f\x77\xb5\xe2\x00\xd6\xfb\x3f\xc7\x59\x26\x3a\x74\x9d\x15\x7e\xff\x9f\x73\x67\x98\xd2\x81\xb2\x5b\x71\xfb\x47\x0b\xdb\x70\x0f\x21\x1f\x84\x1d\xb7",
    },
    {
        RSA_2048,
        HASH_SHA_256,
        0x260445,
        "\xce\xa8\x04\x75\x32\x4c\x1d\xc8\x34\x78\x27\x81\x8d\xa5\x8b\xac\x06\x9d\x34\x19\xc6\x14\xa6\xea\x1a\xc6\xa3\xb5\x10\xdc\xd7\x2c\xc5\x16\x95\x49\x05\xe9\xfe\xf9\x08\xd4\x5e\x13\x00\x6a\xdf\x27\xd4\x67\xa7\xd8\x3c\x11\x1d\x1a\x5d\xf1\x5e\xf2\x93\x77\x1a\xef\xb9\x20\x03\x2a\x5b\xb9\x89\xf8\xe4\xf5\xe1\xb0\x50\x93\xd3\xf1\x30\xf9\x84\xc0\x7a\x77\x2a\x36\x83\xf4\xdc\x6f\xb2\x8a\x96\x81\x5b\x32\x12\x3c\xcd\xd1\x39\x54\xf1\x9d\x5b\x8b\x24\xa1\x03\xe7\x71\xa3\x4c\x32\x87\x55\xc6\x5e\xd6\x4e\x19\x24\xff\xd0\x4d\x30\xb2\x14\x2c\xc2\x62\xf6\xe0\x04\x8f\xef\x6d\xbc\x65\x2f\x21\x47\x9e\xa1\xc4\xb1\xd6\x6d\x28\xf4\xd4\x6e\xf7\x18\x5e\x39\x0c\xbf\xa2\xe0\x23\x80\x58\x2f\x31\x88\xbb\x94\xeb\xbf\x05\xd3\x14\x87\xa0\x9a\xff\x01\xfc\xbb\x4c\xd4\xbf\xd1\xf0\xa8\x33\xb3\x8c\x11\x81\x3c\x84\x36\x0b\xb5\x3c\x7d\x44\x81\x03\x1c\x40\xba\xd8\x71\x3b\xb6\xb8\x35\xcb\x08\x09\x8e\xd1\x5b\xa3\x1e\xe4\xba\x72\x8a\x8c\x8e\x10\xf7\x29\x4e\x1b\x41\x63\xb7\xae\xe5\x72\x77\xbf\xd8\x81\xa6\xf9\xd4\x3e\x02\xc6\x92\x5a\xa3\xa0\x43\xfb\x7f\xb7\x8d",
        "\x09\x97\x63\x4c\x47\x7c\x1a\x03\x9d\x44\xc8\x10\xb2\xaa\xa3\xc7\x86\x2b\x0b\x88\xd3\x70\x82\x72\xe1\xe1\x5f\x66\xfc\x93\x89\x70\x9f\x8a\x11\xf3\xea\x6a\x5a\xf7\xef\xfa\x2d\x01\xc1\x89\xc5\x0f\x0d\x5b\xcb\xe3\xfa\x27\x2e\x56\xcf\xc4\xa4\xe1\xd3\x88\xa9\xdc\xd6\x5d\xf8\x62\x89\x02\x55\x6c\x8b\x6b\xb6\xa6\x41\x70\x9b\x5a\x35\xdd\x26\x22\xc7\x3d\x46\x40\xbf\xa1\x35\x9d\x0e\x76\xe1\xf2\x19\xf8\xe3\x3e\xb9\xbd\x0b\x59\xec\x19\x8e\xb2\xfc\xca\xae\x03\x46\xbd\x8b\x40\x1e\x12\xe3\xc6\x7c\xb6\x29\x56\x9c\x18\x5a\x2e\x0f\x35\xa2\xf7\x41\x64\x4c\x1c\xca\x5e\xbb\x13\x9d\x77\xa8\x9a\x29\x53\xfc\x5e\x30\x04\x8c\x0e\x61\x9f\x07\xc8\xd2\x1d\x1e\x56\xb8\xaf\x07\x19\x3d\x0f\xdf\x3f\x49\xcd\x49\xf2\xef\x31\x38\xb5\x13\x88\x62\xf1\x47\x0b\xd2\xd1\x6e\x34\xa2\xb9\xe7\x77\x7a\x6c\x8c\x8d\x4c\xb9\x4b\x4e\x8b\x5d\x61\x6c\xd5\x39\x37\x53\xe7\xb0\xf3\x1c\xc7\xda\x55\x9b\xa8\xe9\x8d\x88\x89\x14\xe3\x34\x77\x3b\xaf\x49\x8a\xd8\x8d\x96\x31\xeb\x5f\xe3\x2e\x53\xa4\x14\x5b\xf0\xba\x54\x8b\xf2\xb0\xa5\x0c\x63\xf6\x7b\x14\xe3\x98\xa3\x4b\x0d",
        128,
        "\x5a\xf2\x83\xb1\xb7\x6a\xb2\xa6\x95\xd7\x94\xc2\x3b\x35\xca\x73\x71\xfc\x77\x9e\x92\xeb\xf5\x89\xe3\x04\xc7\xf9\x23\xd8\xcf\x97\x63\x04\xc1\x98\x18\xfc\xd8\x9d\x6f\x07\xc8\xd8\xe0\x8b\xf3\x71\x06\x8b\xdf\x28\xae\x6e\xe8\x3b\x2e\x02\x32\x8a\xf8\xc0\xe2\xf9\x6e\x52\x8e\x16\xf8\x52\xf1\xfc\x54\x55\xe4\x77\x2e\x28\x8a\x68\xf1\x59\xca\x6b\xdc\xf9\x02\xb8\x58\xa1\xf9\x47\x89\xb3\x16\x38\x23\xe2\xd0\x71\x7f\xf5\x66\x89\xee\xc7\xd0\xe5\x4d\x93\xf5\x20\xd9\x6e\x1e\xb0\x45\x15\xab\xc7\x0a\xe9\x05\x78\xff\x38\xd3\x1b",
        "\x6b\x8b\xe9\x7d\x9e\x51\x8a\x2e\xde\x74\x6f\xf4\xa7\xd9\x1a\x84\xa1\xfc\x66\x5b\x52\xf1\x54\xa9\x27\x65\x0d\xb6\xe7\x34\x8c\x69\xf8\xc8\x88\x1f\x7b\xcf\x9b\x1a\x6d\x33\x66\xee\xd3\x0c\x3a\xed\x4e\x93\xc2\x03\xc4\x3f\x55\x28\xa4\x5d\xe7\x91\x89\x57\x47\xad\xe9\xc5\xfa\x5e\xee\x81\x42\x7e\xde\xe0\x20\x82\x14\x7a\xa3\x11\x71\x2a\x6a\xd5\xfb\x17\x32\xe9\x3b\x3d\x6c\xd2\x3f\xfd\x46\xa0\xb3\xca\xf6\x2a\x8b\x69\x95\x7c\xc6\x8a\xe3\x9f\x99\x93\xc1\xa7\x79\x59\x9c\xdd\xa9\x49\xbd\xaa\xba\xbb\x77\xf2\x48\xfc\xfe\xaa\x44\x05\x9b\xe5\x45\x9f\xb9\xb8\x99\x27\x8e\x92\x95\x28\xee\x13\x0f\xac\xd5\x33\x72\xec\xbc\x42\xf3\xe8\xde\x29\x98\x42\x58\x60\x40\x64\x40\xf2\x48\xd8\x17\x43\x2d\xe6\x87\x11\x2e\x50\x4d\x73\x40\x28\xe6\xc5\x62\x0f\xa2\x82\xca\x07\x64\x70\x06\xcf\x0a\x2f\xf8\x3e\x19\xa9\x16\x55\x4c\xc6\x18\x10\xc2\xe8\x55\x30\x5d\xb4\xe5\xcf\x89\x3a\x6a\x96\x76\x73\x65\x79\x45\x56\xff\x03\x33\x59\x08\x4d\x7e\x38\xa8\x45\x6e\x68\xe2\x11\x55\xb7\x61\x51\x31\x4a\x29\x87\x5f\xee\xe0\x95\x57\x16\x1c\xbc\x65\x45\x41\xe8\x9e\x42",
    },
    {
        RSA_3072,
        HASH_SHA_384,
        0xeaf05d,
        "\xdc\xa9\x83\x04\xb7\x29\xe8\x19\xb3\x40\xe2\x6c\xec\xb7\x30\xae\xcb\xd8\x93\x0e\x33\x4c\x73\x14\x93\xb1\x80\xde\x97\x0e\x6d\x3b\xc5\x79\xf8\x6c\x8d\x5d\x03\x2f\x8c\xd3\x3c\x43\x97\xee\x7f\xfd\x01\x9d\x51\xb0\xa7\xdb\xe4\xf5\x25\x05\xa1\xa3\x4a\xe3\x5d\x23\xcf\xaa\xf5\x94\x41\x9d\x50\x9f\x46\x9b\x13\x69\x58\x9f\x9c\x86\x16\xa7\xd6\x98\x51\x3b\xc1\xd4\x23\xd7\x00\x70\xd3\xd7\x2b\x99\x6c\x23\xab\xe6\x8b\x22\xcc\xc3\x9a\xab\xd1\x65\x07\x12\x40\x42\xc8\x8d\x4d\xa6\xa7\x45\x12\x88\xec\x87\xc9\x24\x4b\xe2\x26\xaa\xc0\x2d\x18\x17\x68\x2f\x80\xcc\x34\xc6\xea\xf3\x7e\xc8\x4d\x24\x7a\xae\xde\xbb\x56\xc3\xbb\xca\xff\xb5\xcf\x42\xf6\x1f\xe1\xb7\xf3\xfc\x89\x74\x8e\x21\x39\x73\xbf\x5f\x67\x9d\x8b\x8b\x42\xa4\x7a\xc4\xaf\xd9\xe5\x1e\x1d\x12\x14\xdf\xe1\xa7\xe1\x16\x90\x80\xbd\x9a\xd9\x17\x58\xf6\xc0\xf9\xb2\x2a\xe4\x0a\xf6\xb4\x14\x03\xd8\xf2\xd9\x6d\xb5\xa0\x88\xda\xa5\xef\x86\x83\xf8\x6f\x50\x1f\x7a\xd3\xf3\x58\xb6\x33\x7d\xa5\x5c\x6c\xfc\x00\x31\x97\x42\x0c\x1c\x75\xab\xdb\x7b\xe1\x40\x3e\xa4\xf3\xe6\x42\x59\xf5\xc6\xda\x33\x25\xbb\x87\xd6\x05\xb6\xe1\x4b\x53\x50\xe6\xe1\x45\x5c\x9d\x49\x7d\x81\x04\x66\x08\xe3\x87\x95\xdc\x85\xab\xa4\x06\xc9\xde\x1f\x4f\x99\x90\xd5\x15\x3b\x98\xbb\xab\xbd\xcb\xd6\xbb\x18\x85\x43\x12\xb2\xda\x48\xb4\x11\xe8\x38\xf2\x6a\xe3\x10\x9f\x10\x4d\xfd\x16\x19\xf9\x91\x82\x4e\xc8\x19\x86\x1e\x51\x99\xf2\x6b\xb9\xb3\xb2\x99\xbf\xa9\xec\x2f\xd6\x91\x27\x1b\x58\xa8\xad\xec\xbf\x0f\xf6\x27\xb5\x43\x36\xf3\xdf\x70\x03\xd7\x0e\x37\xd1\x1d\xdb\xd9\x30\xd9\xab\xa7\xe8\x8e\xd4\x01\xac\xb4\x40\x92\xfd\x53\xd5",
        "\x2d\x6d\xb9\x1e\xb3\x2e\x36\xe5\xd5\x12\x7d\xeb\x03\x4d\x14\x07\x2f\xe6\x0c\x1c\xd1\x3c\x8c\x3d\xd9\xad\xbc\x87\x14\x0b\x5e\x71\x36\xf4\xf8\x9e\x61\xbb\xee\x78\x26\xf4\x5a\xc1\xd9\x91\x94\xfb\xaa\x8c\x5a\x0b\xb9\x4d\xb3\x1d\x93\x72\x3b\x51\x41\x9d\x9c\x6f\x6e\xeb\x5f\x36\x10\xb6\x7f\x4b\x4e\x2a\xde\x05\xcc\x6b\x89\x90\xe8\x83\x2c\xf4\xcd\x40\xf2\xdf\x03\x88\xc9\xa5\x20\x72\xe2\x7e\xfe\xba\xe2\x0b\x4a\xd5\x95\x1f\x4d\x20\xdd\x18\x94\x3e\x58\xb7\x86\xd8\x79\x76\x52\xb2\xbb\x75\x9c\x31\x9d\x2b\x00\x46\xdb\xf6\x9c\x53\xc0\x75\xd0\x0c\x28\x7b\x87\x60\x42\xfa\xfa\x23\xfe\x4d\xd7\x05\xe4\xe4\x23\x27\x7c\x90\x00\x31\x1e\x94\xea\x3f\x74\x56\xe3\x2f\xd1\x2a\xfe\x4a\x2b\xde\x35\x8a\x65\x82\x4f\x10\x55\x06\x48\x23\xc8\x93\xfc\x93\xbe\x3b\x8c\x65\x8b\xb4\x41\xd7\xf0\xb0\x0a\xc2\x46\xbf\x04\x3a\x9c\x00\x53\xd3\x19\xf0\x03\xef\x5a\x55\x33\xf7\x4d\x63\x0d\x8c\xe9\x3b\xab\x41\x6a\x82\x95\x1e\x05\xb8\x2c\x60\x36\x59\x3e\xca\x89\xf0\xeb\xac\xd7\xd5\x1e\xd9\x61\x0a\xf4\x35\x37\xfc\xd2\x66\xe5\xe4\x7c\x0d\x25\xfe\xda\xd6\xd0\x47\xa1\xa1\xee\x3e\xb4\x44\x36\x7e\x3e\xff\x7c\x75\x20\xca\x4f\x77\x9f\x20\x27\xfe\x45\x03\x62\x04\x16\x84\x54\xdf\x49\x18\xb5\x47\xa4\xd1\x9e\x93\x8f\x3c\x6d\xb6\xca\x27\x02\xad\x9b\xbd\xa1\x26\x1c\x64\xd0\x0b\x57\x82\x85\xbd\xcf\xc9\x85\x1f\x96\xa4\xf2\xcd\x14\xd6\x6b\x9c\x1f\x65\x74\x2a\x13\x44\x94\x8c\x9f\x1d\xa8\xd3\x38\xed\x4e\x3d\xeb\x1e\xba\xdf\x11\xf8\xc2\x81\x94\x4e\x88\x49\x82\x34\x96\xf8\x61\x11\xf3\x78\xbd\xd0\x84\xc9\x9f\x65\xfb\x9b\x4e\xe6\x27\x1b\x1d\x1b\xe4\x24\xc2\x94\xd1\x85\xd9\xfd\x9c\xdf",
        128,
        "\x04\x84\x6c\x2e\x67\x6a\xc7\x31\x60\xbf\x4e\x45\x65\x2b\xdc\x6c\xc4\xd4\xc9\x28\x45\x77\xb4\x32\x0a\xb7\x7f\x6e\xbb\xb5\x9a\x1f\xe0\xe0\x85\x58\x8e\x0f\x90\xb3\x46\xcd\xe6\x44\x1a\xf3\xc9\xd0\x11\x7d\x1f\x3b\xcd\x96\x2e\x40\x6b\xf5\xa4\x65\xab\x6c\xda\x2d\x51\xbe\x59\x8f\xcb\xb2\x9e\xa7\x13\x65\x1a\xac\xd7\xe4\x7d\x22\xd8\xfa\x34\x50\x90\x47\x30\xf5\x17\x92\xea\x37\x47\x61\xa4\xdc\x1f\xc6\xf1\xbc\x65\x7b\x77\x76\x8f\x31\xf4\x63\xe4\x26\x7f\xc8\xdf\xf6\x11\x50\xd4\xb3\x43\xb9\xd5\x37\x59\xcd\xd7\xb9\x80\x94",
        "\x10\x3b\xee\x57\xe2\x5b\xe8\xc3\xa2\xf7\x74\xe7\x39\xb4\x7f\x93\x43\x5e\x41\x49\x32\xc0\x49\x4b\x6b\x6a\xa2\x47\x5b\xf7\xc9\x30\x5c\x73\x74\x7e\x0a\xdf\x82\xc2\x03\x20\x07\xb3\xf7\x5a\x69\xc9\x31\x12\x61\x7a\x62\x56\x6c\x5a\x2d\xea\xa2\x5f\xb9\x52\x09\xda\x49\xfe\x9c\x16\x1c\xb2\xff\xa4\x0f\xd9\xd7\x7f\x1f\xf6\x60\xc8\xb6\xcd\x3b\x54\xe3\xe7\x9a\x75\x9c\x57\xc5\x71\x98\x02\xc9\x31\x1d\xb7\x04\xba\x3c\x67\xb4\xa3\x11\x37\x54\xa4\x1b\x8d\xa5\x9c\x64\x5b\xe3\x90\x9e\x7d\xb7\xe7\xcf\x72\x94\xda\xb4\x4f\x74\x24\x0f\x81\xa2\x81\xee\xcd\x6e\xf3\x1c\x7c\xf1\x8b\x1a\x19\xc7\xd0\x2a\x31\x2b\x91\xd6\xed\xfa\xa9\x54\x46\x2d\x34\x74\x0a\xf5\xab\x70\x8d\xb5\xa1\x0b\x00\xc5\x42\xbe\x82\xfa\x2b\x20\x26\xb0\x9e\xf3\x8a\x40\x01\x45\x7e\x27\xa6\x02\x37\x70\xe4\xb4\xd5\x00\x32\x67\xc8\x5c\x9e\xea\x1d\x5f\x8d\x77\x0b\xd4\x0b\x55\x4d\x5b\x4d\xaf\x14\x6d\xcc\xab\xac\x3e\xa8\xa1\x3a\x05\xc3\xbd\xdf\xc9\x71\xc5\x15\x8f\xac\x02\x7c\xa1\x9b\x72\x32\x62\x1e\x9d\x2e\x37\xb6\xa6\x55\xaf\x54\x5e\x44\xa2\x98\xbe\x78\xcd\x47\x5c\x22\xa4\x8b\xff\x7c\x34\x94\xa5\xf8\xa6\xab\xdf\x1a\x46\xf9\xde\x08\x2e\x37\x4f\xd5\x98\x86\x7d\x61\xe4\xd5\x1d\xae\xd8\x41\x52\xe4\x3c\xc6\xa2\xaf\xfa\xe2\x05\xed\xc5\x26\x13\x48\x0d\x41\x1a\xba\x84\xfc\xc9\xb6\x9d\x1c\x28\xf1\x6f\x76\x83\x69\x01\xa7\xc5\xb3\xeb\x2f\x2c\x94\x0d\x0a\x3f\xad\x38\xa8\xef\xab\x96\x8a\x0c\x85\xeb\x22\xe1\x1d\x3d\x08\x61\x13\x6c\xed\x5f\x06\x73\x4f\xdf\x8d\x4f\x15\x1d\x23\x86\x1b\x1c\xba\x9b\x9c\x58\x0d\x33\x50\xc7\x6d\x4d\xc8\x08\x46\x1d\x5f\x87\x2e\xc5\x48\xb2\xb4\x27\xdf\xf7\x4b\x1d\x1a",
    },
    {
        RSA_3072,
        HASH_SHA_512,
        0xeaf05d,
        "\xdc\xa9\x83\x04\xb7\x29\xe8\x19\xb3\x40\xe2\x6c\xec\xb7\x30\xae\xcb\xd8\x93\x0e\x33\x4c\x73\x14\x93\xb1\x80\xde\x97\x0e\x6d\x3b\xc5\x79\xf8\x6c\x8d\x5d\x03\x2f\x8c\xd3\x3c\x43\x97\xee\x7f\xfd\x01\x9d\x51\xb0\xa7\xdb\xe4\xf5\x25\x05\xa1\xa3\x4a\xe3\x5d\x23\xcf\xaa\xf5\x94\x41\x9d\x50\x9f\x46\x9b\x13\x69\x58\x9f\x9c\x86\x16\xa7\xd6\x98\x51\x3b\xc1\xd4\x23\xd7\x00\x70\xd3\xd7\x2b\x99\x6c\x23\xab\xe6\x8b\x22\xcc\xc3\x9a\xab\xd1\x65\x07\x12\x40\x42\xc8\x8d\x4d\xa6\xa7\x45\x12\x88\xec\x87\xc9\x24\x4b\xe2\x26\xaa\xc0\x2d\x18\x17\x68\x2f\x80\xcc\x34\xc6\xea\xf3\x7e\xc8\x4d\x24\x7a\xae\xde\xbb\x56\xc3\xbb\xca\xff\xb5\xcf\x42\xf6\x1f\xe1\xb7\xf3\xfc\x89\x74\x8e\x21\x39\x73\xbf\x5f\x67\x9d\x8b\x8b\x42\xa4\x7a\xc4\xaf\xd9\xe5\x1e\x1d\x12\x14\xdf\xe1\xa7\xe1\x16\x90\x80\xbd\x9a\xd9\x17\x58\xf6\xc0\xf9\xb2\x2a\xe4\x0a\xf6\xb4\x14\x03\xd8\xf2\xd9\x6d\xb5\xa0\x88\xda\xa5\xef\x86\x83\xf8\x6f\x50\x1f\x7a\xd3\xf3\x58\xb6\x33\x7d\xa5\x5c\x6c\xfc\x00\x31\x97\x42\x0c\x1c\x75\xab\xdb\x7b\xe1\x40\x3e\xa4\xf3\xe6\x42\x59\xf5\xc6\xda\x33\x25\xbb\x87\xd6\x05\xb6\xe1\x4b\x53\x50\xe6\xe1\x45\x5c\x9d\x49\x7d\x81\x04\x66\x08\xe3\x87\x95\xdc\x85\xab\xa4\x06\xc9\xde\x1f\x4f\x99\x90\xd5\x15\x3b\x98\xbb\xab\xbd\xcb\xd6\xbb\x18\x85\x43\x12\xb2\xda\x48\xb4\x11\xe8\x38\xf2\x6a\xe3\x10\x9f\x10\x4d\xfd\x16\x19\xf9\x91\x82\x4e\xc8\x19\x86\x1e\x51\x99\xf2\x6b\xb9\xb3\xb2\x99\xbf\xa9\xec\x2f\xd6\x91\x27\x1b\x58\xa8\xad\xec\xbf\x0f\xf6\x27\xb5\x43\x36\xf3\xdf\x70\x03\xd7\x0e\x37\xd1\x1d\xdb\xd9\x30\xd9\xab\xa7\xe8\x8e\xd4\x01\xac\xb4\x40\x92\xfd\x53\xd5",
        "\x2d\x6d\xb9\x1e\xb3\x2e\x36\xe5\xd5\x12\x7d\xeb\x03\x4d\x14\x07\x2f\xe6\x0c\x1c\xd1\x3c\x8c\x3d\xd9\xad\xbc\x87\x14\x0b\x5e\x71\x36\xf4\xf8\x9e\x61\xbb\xee\x78\x26\xf4\x5a\xc1\xd9\x91\x94\xfb\xaa\x8c\x5a\x0b\xb9\x4d\xb3\x1d\x93\x72\x3b\x51\x41\x9d\x9c\x6f\x6e\xeb\x5f\x36\x10\xb6\x7f\x4b\x4e\x2a\xde\x05\xcc\x6b\x89\x90\xe8\x83\x2c\xf4\xcd\x40\xf2\xdf\x03\x88\xc9\xa5\x20\x72\xe2\x7e\xfe\xba\xe2\x0b\x4a\xd5\x95\x1f\x4d\x20\xdd\x18\x94\x3e\x58\xb7\x86\xd8\x79\x76\x52\xb2\xbb\x75\x9c\x31\x9d\x2b\x00\x46\xdb\xf6\x9c\x53\xc0\x75\xd0\x0c\x28\x7b\x87\x60\x42\xfa\xfa\x23\xfe\x4d\xd7\x05\xe4\xe4\x23\x27\x7c\x90\x00\x31\x1e\x94\xea\x3f\x74\x56\xe3\x2f\xd1\x2a\xfe\x4a\x2b\xde\x35\x8a\x65\x82\x4f\x10\x55\x06\x48\x23\xc8\x93\xfc\x93\xbe\x3b\x8c\x65\x8b\xb4\x41\xd7\xf0\xb0\x0a\xc2\x46\xbf\x04\x3a\x9c\x00\x53\xd3\x19\xf0\x03\xef\x5a\x55\x33\xf7\x4d\x63\x0d\x8c\xe9\x3b\xab\x41\x6a\x82\x95\x1e\x05\xb8\x2c\x60\x36\x59\x3e\xca\x89\xf0\xeb\xac\xd7\xd5\x1e\xd9\x61\x0a\xf4\x35\x37\xfc\xd2\x66\xe5\xe4\x7c\x0d\x25\xfe\xda\xd6\xd0\x47\xa1\xa1\xee\x3e\xb4\x44\x36\x7e\x3e\xff\x7c\x75\x20\xca\x4f\x77\x9f\x20\x27\xfe\x45\x03\x62\x04\x16\x84\x54\xdf\x49\x18\xb5\x47\xa4\xd1\x9e\x93\x8f\x3c\x6d\xb6\xca\x27\x02\xad\x9b\xbd\xa1\x26\x1c\x64\xd0\x0b\x57\x82\x85\xbd\xcf\xc9\x85\x1f\x96\xa4\xf2\xcd\x14\xd6\x6b\x9c\x1f\x65\x74\x2a\x13\x44\x94\x8c\x9f\x1d\xa8\xd3\x38\xed\x4e\x3d\xeb\x1e\xba\xdf\x11\xf8\xc2\x81\x94\x4e\x88\x49\x82\x34\x96\xf8\x61\x11\xf3\x78\xbd\xd0\x84\xc9\x9f\x65\xfb\x9b\x4e\xe6\x27\x1b\x1d\x1b\xe4\x24\xc2\x94\xd1\x85\xd9\xfd\x9c\xdf",
        128,
        "\xdb\x6c\x9d\x4b\xad\xb1\xd9\xb7\x4d\x68\x34\x64\x48\xb4\xd5\x34\x06\x31\x78\x3b\x5a\x35\xac\x24\x58\x56\x3e\xd0\x67\x2c\xf5\x41\x97\x58\x7f\xb7\x34\xc4\xac\x18\x9b\x2d\xda\x95\x4c\xdf\xb1\x8b\x41\xc0\x10\xa7\x7e\x90\x46\x4e\xea\x6f\x86\x3c\x5d\xa0\x95\x6b\xfa\x8c\xc6\x36\xbf\x0a\x28\xbe\x5a\xdd\xfe\x8d\x3e\x7e\x6f\x79\xf7\x1d\x7f\xcb\xba\xe2\x3e\xa1\x41\x78\x3f\x91\xd6\xcc\x4c\x8f\xad\x12\x58\x11\x76\x0a\xb5\x71\x33\x81\x88\x92\x47\x1a\x79\xc6\xd0\x4e\xaf\xef\x37\xb2\xfb\xe5\x06\x78\x53\x18\xf9\x39\x83\x77",
        "\xd4\x80\xd5\xa9\x79\xad\x1a\x0c\x4c\xa3\x29\xeb\xd8\x8a\x4a\xa6\x94\x8a\x8c\xf6\x6a\x3c\x0b\xfe\xe2\x25\x44\x09\xc5\x30\x54\xd6\xff\xf5\x9f\x72\xa4\x6f\x02\xc6\x68\x14\x6a\x14\x4f\x8f\x2b\xa7\xc4\xe6\xb4\xde\x31\x40\x0e\xba\x00\xae\x3e\xe8\x75\x89\xdc\xb6\xea\x13\x9e\x70\xf7\x70\x4f\x69\x1b\xc3\x7d\x72\x2f\x62\xbb\x3b\x2c\xd3\x03\xa3\x4d\x92\xfd\xe4\xde\xb5\x4a\x64\xdd\x39\x18\x43\x82\xd5\x9c\xca\xf0\xc0\x7a\x7e\xa4\x10\x7d\x08\x08\x26\x0e\xd8\xd4\x21\xcb\x8b\x14\x07\xcd\xf9\xe9\x15\x15\x92\x82\xb9\xf7\xbf\xfd\xbf\x40\xd8\x77\x88\x5d\xa7\x39\x9e\xde\xbd\x30\x0a\x7e\x77\xa9\x08\xf7\x56\x65\x9a\x18\x24\xf9\x5c\x8a\x81\x2a\xa5\x40\xeb\xaa\x64\xab\x54\xa2\x33\x72\x3d\xb5\x5c\xaa\x8b\x44\x66\xea\x9a\xe6\x61\x4a\xd1\xbb\x86\x9e\x9d\x8e\x0d\x03\x2f\x39\x01\x67\x1e\x94\xc0\xb6\x73\xbe\x65\x37\xcd\x54\x27\x8e\xd3\xda\x2e\x1e\xdb\xc0\x4e\xe3\xa9\xe8\x07\x0d\x73\xba\x0f\xfb\x93\xe6\x0f\x30\xb8\x7f\xf3\x86\x2e\x9c\x53\x90\x8f\x2c\x8e\x99\x91\x56\x68\xc1\xf4\x66\x35\xe0\x5b\xf7\x16\x30\x51\xff\x9d\x92\xbc\x71\xa6\x26\x55\x3c\x69\xdf\xdd\x06\xa4\x9f\x7f\xf1\xed\x51\xe9\x18\xf3\xed\x80\x1d\xae\x62\xca\x27\x6d\x70\x63\xd7\x2a\x6e\xbc\x13\x6b\xa0\x6c\xfe\xdf\x5a\xa2\x32\x77\xe8\x10\x08\xc6\x3b\x2e\x00\x83\xd0\xfd\x68\x14\xf6\xd4\xb4\xb4\x0a\x42\xe8\xc0\x20\x6f\x3c\x35\x6a\x5e\xc7\x09\xb7\xc8\xa4\xb7\x4b\x7b\x48\xd5\x3c\x9d\x86\x94\xd2\x73\x59\xc2\xc7\x70\x19\x38\xd2\xf0\x16\x17\x21\xa5\x73\x13\xbb\x1a\x2e\x11\xda\x21\x58\x72\x49\x81\x82\x49\x3d\x85\x17\x04\x3b\x4c\x03\xf9\x34\x46\xaa\xc9\x38\x30\x27\x65\x42\x02\x6c\xe8\x30\x55",
    },
    {
        RSA_3072,
        HASH_SHA_512_224,
        0x4c9c53,
        "\xa5\xe6\x8e\x37\x9f\x3c\x4c\x3c\x90\x8a\x04\xce\x63\xc4\x60\x42\x3a\x7a\x10\xa1\x6d\xf4\xda\x61\x66\xfc\xd8\xb1\x41\x00\x0b\x14\xc1\x13\xb2\x16\xfe\x4f\x5f\x17\x4a\x59\x35\xc9\x37\xe0\xc6\xd8\x32\x86\xba\x13\xb1\x37\xc4\xd0\xbe\x7d\x7b\x41\x5c\xed\x1d\x6d\xc0\x95\x10\x98\xa4\x77\xda\xc4\x1d\xf6\x38\x2b\x9a\x50\x10\x8f\x57\x45\x5d\x85\x3d\x4d\x86\x63\xfe\xfd\xd5\x01\x7a\x53\x3c\xb7\x1a\x87\x07\xae\x48\x03\xdc\x2c\xb9\x3e\x54\x53\x57\x36\x52\x48\x5e\xaf\x9e\x17\x5e\x09\x5c\x7f\xe7\x2d\xf7\xdb\xae\x96\x90\x2c\x15\xed\x0e\xf9\x68\x83\x5e\x72\xcf\xbd\x52\x90\xd2\xe3\xea\x35\xac\xe7\xa2\xd3\x0e\x58\x68\x7d\x38\x8a\x3a\x65\x40\xcb\x47\x06\xa6\xe5\x96\xa8\xa7\xcb\x9e\x18\x74\x1c\x6e\xab\x63\x2a\x23\x00\x45\x3f\xb4\x7d\x3b\x54\x33\x81\x51\x9b\x7c\x72\x79\x13\xdb\xd6\xe0\x37\xaf\x5b\xc8\xd0\x13\xc3\xfd\x16\xc0\x4a\xd2\xca\x46\x40\x41\x89\x8c\x54\xb0\x06\x7d\xb7\x57\xb8\x8d\xda\x0a\x29\x86\xb4\x52\x0c\x51\x4c\xaa\x07\x39\xb3\x0d\x1d\xa8\x5c\x0c\x84\x18\x85\x07\xed\x39\x79\xba\xfb\x9f\x8c\xca\x0b\x2d\x6d\xde\x20\xc6\xac\x06\xed\xa1\x1e\x6a\x69\xbd\x9e\x9b\xfc\x3c\x35\xa1\xd4\xb5\x2b\x85\x56\x81\x05\xed\x69\x4c\x33\xdd\xc8\x10\xb1\xd4\xa5\x06\x53\x8c\xf9\xf4\xb3\xde\x2f\xca\x2b\xf8\x99\xc9\xb8\xb8\x91\x14\x66\xfc\x08\x30\xcc\x1f\x3a\x9c\x70\x35\x6f\xb9\xb2\xcb\x9a\x62\x02\x16\x74\xe8\x0e\x02\x4b\x89\xbc\xff\xf0\x0e\x63\x3c\x54\x88\x52\xd4\xee\xa2\x1a\x5e\x5f\xfe\x7f\x7f\xf8\x6a\xce\x07\x92\x6f\x4c\xd9\xeb\xdc\xfe\xb9\x0f\xb2\xcb\xaa\x91\x52\xf7\x92\x23\xaa\xc5\xfb\xcc\xe9\xe6\x6b\x6c\xa9\xd7\x21\xf0\x71\x4e\x6d\xef\x06\x99",
        "\x06\x90\x3d\x86\xfc\x4b\x13\x51\x72\x7e\xc4\x5d\x3b\xae\x17\xc7\x0b\x18\x0f\x88\x24\xa0\x87\xe8\xaf\xd4\x52\x85\x0e\xe2\x80\x3a\xfa\xaf\x59\x9b\x71\xc0\x79\x82\xc2\x3c\xd8\xb0\x97\x13\xcd\x1e\x93\x52\x6b\xa8\x03\x89\x8a\x26\x74\xfd\xb2\xd8\xc2\x71\x6b\x8d\xa6\x70\x11\x6c\xa4\xaa\x4f\xc5\xf6\xc0\x20\x79\x6a\xd5\xc2\x7a\x6d\x1a\x27\xaf\xe8\xc2\x80\x67\x94\x62\x31\x16\x49\x4e\x63\x74\xe7\x73\xc9\xb2\x68\x6f\x24\x53\xda\x69\x74\x7a\xd2\xe0\xb6\x8a\x49\x0e\x7e\x51\x32\x89\xac\xe6\xf6\xd1\xa0\xdd\x99\x0b\x22\x2c\xfa\xdb\x6a\x80\x0f\x9d\xce\x7b\xd3\x99\x5c\xda\x61\xe1\xf5\x90\xe4\x12\x55\x55\x15\xaf\x9b\x91\x9b\xb3\x82\x3d\xa1\xb5\xd6\xbe\xb4\x7f\xff\x2a\x28\xac\xf8\xd7\xf4\x0d\xba\xe7\x26\x30\x38\x68\x0a\x4b\x64\x2d\x8a\x28\x04\x85\x09\xe2\xdb\x9d\x41\xc6\x5c\x23\xeb\x60\x5a\x4d\x1c\xc6\x4f\x14\x0f\xf5\xec\x7d\x46\xaf\xae\xf5\x53\x2a\xe1\x40\xf9\xa5\x0f\x9d\x27\x63\xf2\xd2\x50\x80\xb9\xaf\xc7\xd3\x5b\xec\x13\xa1\x1d\x34\xc4\xab\x95\xce\xeb\xfe\xdf\x0c\xea\xc7\x6e\x7a\xb1\xd6\x6b\x9d\xab\x61\x8a\xa0\x06\x67\x71\x5e\x60\x54\xa0\x6a\xdd\x76\xa7\x3a\xc5\xb9\xa0\xfb\xb7\xf1\x40\x15\x75\x7b\x9d\x07\xc7\x01\x14\xf4\xd3\x75\x9f\xac\x34\xc2\x2e\xa8\xea\x1c\xc9\xaf\x97\x61\xb6\x88\xfd\xfd\xb0\xf4\x81\x61\x56\x75\xc5\xb7\x07\x59\xa2\x02\xed\x80\xea\xc1\xf6\x02\x59\x65\x35\x37\xd1\x32\xbf\x2e\xdf\x77\x70\xfb\x37\x6f\x51\x30\x56\x59\x4a\x55\x8e\xa9\xff\x66\xdf\x85\x9c\xa4\xcf\xad\x14\x47\xcd\xe2\x29\x9f\xd2\x65\x8f\x8d\xb0\x1b\xdd\x15\xab\xfc\xef\x39\x1a\x1c\xe4\xe0\xd6\x12\x7d\xd9\x46\x40\x48\xb2\xf9\x2a\x18\x5d\xa8\x8a\xbc\x6d",
        128,
        "\x01\x3d\x90\xb2\x69\x9c\xeb\x79\xcb\x94\xed\xfa\xf8\x41\x8f\x56\x5b\xee\x41\x50\x80\x89\x8c\x5b\xd8\x55\xf6\xf7\xb6\xdf\x26\x3e\x9e\x33\x48\xba\xbf\x4f\xb3\x7a\xbe\xd8\xc9\x65\xb5\x0c\x1f\xce\x7c\xf8\xdf\x48\x27\xeb\x6a\xbb\xcf\x2a\x41\xb7\x96\xe5\x25\x09\xe5\x6a\x7d\x8c\xf8\x99\xf9\x42\x9d\x98\x75\xa3\x38\xc8\x20\x35\x0b\xf7\xdd\x5d\xb4\xd7\xe9\x75\xf7\xae\xbe\x1e\xbe\x50\x38\xd8\x5e\x4b\xf7\xd0\x1c\x61\x04\xf8\xf0\x3b\xb7\x5d\x89\x5b\xd8\xb6\x90\x53\x04\x38\x31\x34\x52\xb2\xd8\x4a\x37\xd5\x38\x06\xa7\xd3",
        "\x21\xe6\x5d\x04\xc4\x1b\xfb\x83\x7c\xb9\xb9\xf2\x6b\xd1\xd9\x20\xf6\xc1\x6f\x11\x78\x98\x0a\xdf\x3d\xb2\x97\xc1\x6a\x76\x75\xf9\xe1\xad\x15\xe0\x0e\x1c\x86\xb3\x97\x25\x0e\x1c\x5f\xab\xd7\xbf\xe6\x91\x55\xb8\xdb\x4b\x5e\x18\xc5\xc8\xb1\x69\x48\x34\x8f\x8b\x73\xdb\xa2\x74\xc9\xa4\x7d\x7a\x35\x32\x9e\x4d\x6a\xc3\x60\x1a\x08\xaf\x34\xfb\x62\x72\x26\x4e\x4a\xe5\x26\x8c\x1e\x59\xa7\x3f\xe4\xab\xde\x5b\xe0\x2c\xc1\x4a\xb3\x3e\x3d\xe7\x7a\xb0\x64\x46\xfc\x4f\x32\x0f\x08\x05\x27\x9d\x74\x73\x36\x45\xbc\x2d\xe6\xb6\xf5\x18\xb8\x41\x35\x00\x48\xe1\x07\x8c\x07\x52\x1a\x02\xd7\x56\x9f\x5e\x70\x0e\x80\x09\x9b\x69\xb8\xc4\xdc\xf6\xd4\xaa\x89\x6a\x64\x47\x54\xa3\xa9\x74\x92\xf8\x2a\x96\x64\xb9\xfe\xf0\x41\xf6\xfd\xa2\x96\x7d\xdf\x88\xda\x84\x82\x15\x8a\x17\x97\x85\x6b\xf6\xb8\xd0\x71\xa1\xee\xf5\x0d\xf8\x3d\x6f\x64\x84\xe2\xa3\xdb\x02\xc6\x52\x53\x1d\x8c\x04\x46\x6a\x55\xe7\x9f\x46\x7f\xba\xce\xd5\x67\x0d\x65\x32\x5b\x87\x88\x5a\xbd\x6d\x16\xc7\x8c\xb4\x24\xc1\x9a\x09\x0b\x4d\xbd\xac\xb1\xfa\x8e\xeb\xfd\xe9\x7b\xa4\xfa\xf5\x1e\x57\x65\x21\x75\x6b\xe3\xc7\x61\xcd\xfa\x85\xda\xb3\xd4\xba\x89\xf2\x76\xff\xf9\x43\x6f\x17\x6b\x83\x9f\xa5\x93\x4c\x88\x61\x2d\x7a\x77\x5c\xcd\xba\xc8\xea\x59\xe3\xb6\xf7\xe2\x47\x90\x22\x17\x2f\x17\xf1\xad\x74\x9a\xc6\xfc\xa2\x8d\x69\x8a\xa5\x0b\xc4\xab\x92\xd8\xea\x36\xe4\xb3\x40\x9d\xd4\xb6\x71\xcb\x00\xcd\x2f\x7d\x3e\x54\x4b\x96\xd7\x49\x53\xd0\x50\x9a\x15\xbc\xb0\xb5\x2a\xa6\x67\x1a\x5e\x13\x28\x14\xd1\x89\x08\xb7\xda\x88\xfc\x9e\x3a\x7e\xe8\x43\x95\x7f\x6b\xcd\x0a\x79\x3f\x41\xef\x90\x54\x82\x3d",
    },
    {
        RSA_3072,
        HASH_SHA_512_256,
        0x4c9c53,
        "\xa5\xe6\x8e\x37\x9f\x3c\x4c\x3c\x90\x8a\x04\xce\x63\xc4\x60\x42\x3a\x7a\x10\xa1\x6d\xf4\xda\x61\x66\xfc\xd8\xb1\x41\x00\x0b\x14\xc1\x13\xb2\x16\xfe\x4f\x5f\x17\x4a\x59\x35\xc9\x37\xe0\xc6\xd8\x32\x86\xba\x13\xb1\x37\xc4\xd0\xbe\x7d\x7b\x41\x5c\xed\x1d\x6d\xc0\x95\x10\x98\xa4\x77\xda\xc4\x1d\xf6\x38\x2b\x9a\x50\x10\x8f\x57\x45\x5d\x85\x3d\x4d\x86\x63\xfe\xfd\xd5\x01\x7a\x53\x3c\xb7\x1a\x87\x07\xae\x48\x03\xdc\x2c\xb9\x3e\x54\x53\x57\x36\x52\x48\x5e\xaf\x9e\x17\x5e\x09\x5c\x7f\xe7\x2d\xf7\xdb\xae\x96\x90\x2c\x15\xed\x0e\xf9\x68\x83\x5e\x72\xcf\xbd\x52\x90\xd2\xe3\xea\x35\xac\xe7\xa2\xd3\x0e\x58\x68\x7d\x38\x8a\x3a\x65\x40\xcb\x47\x06\xa6\xe5\x96\xa8\xa7\xcb\x9e\x18\x74\x1c\x6e\xab\x63\x2a\x23\x00\x45\x3f\xb4\x7d\x3b\x54\x33\x81\x51\x9b\x7c\x72\x79\x13\xdb\xd6\xe0\x37\xaf\x5b\xc8\xd0\x13\xc3\xfd\x16\xc0\x4a\xd2\xca\x46\x40\x41\x89\x8c\x54\xb0\x06\x7d\xb7\x57\xb8\x8d\xda\x0a\x29\x86\xb4\x52\x0c\x51\x4c\xaa\x07\x39\xb3\x0d\x1d\xa8\x5c\x0c\x84\x18\x85\x07\xed\x39\x79\xba\xfb\x9f\x8c\xca\x0b\x2d\x6d\xde\x20\xc6\xac\x06\xed\xa1\x1e\x6a\x69\xbd\x9e\x9b\xfc\x3c\x35\xa1\xd4\xb5\x2b\x85\x56\x81\x05\xed\x69\x4c\x33\xdd\xc8\x10\xb1\xd4\xa5\x06\x53\x8c\xf9\xf4\xb3\xde\x2f\xca\x2b\xf8\x99\xc9\xb8\xb8\x91\x14\x66\xfc\x08\x30\xcc\x1f\x3a\x9c\x70\x35\x6f\xb9\xb2\xcb\x9a\x62\x02\x16\x74\xe8\x0e\x02\x4b\x89\xbc\xff\xf0\x0e\x63\x3c\x54\x88\x52\xd4\xee\xa2\x1a\x5e\x5f\xfe\x7f\x7f\xf8\x6a\xce\x07\x92\x6f\x4c\xd9\xeb\xdc\xfe\xb9\x0f\xb2\xcb\xaa\x91\x52\xf7\x92\x23\xaa\xc5\xfb\xcc\xe9\xe6\x6b\x6c\xa9\xd7\x21\xf0\x71\x4e\x6d\xef\x06\x99",
        "\x06\x90\x3d\x86\xfc\x4b\x13\x51\x72\x7e\xc4\x5d\x3b\xae\x17\xc7\x0b\x18\x0f\x88\x24\xa0\x87\xe8\xaf\xd4\x52\x85\x0e\xe2\x80\x3a\xfa\xaf\x59\x9b\x71\xc0\x79\x82\xc2\x3c\xd8\xb0\x97\x13\xcd\x1e\x93\x52\x6b\xa8\x03\x89\x8a\x26\x74\xfd\xb2\xd8\xc2\x71\x6b\x8d\xa6\x70\x11\x6c\xa4\xaa\x4f\xc5\xf6\xc0\x20\x79\x6a\xd5\xc2\x7a\x6d\x1a\x27\xaf\xe8\xc2\x80\x67\x94\x62\x31\x16\x49\x4e\x63\x74\xe7\x73\xc9\xb2\x68\x6f\x24\x53\xda\x69\x74\x7a\xd2\xe0\xb6\x8a\x49\x0e\x7e\x51\x32\x89\xac\xe6\xf6\xd1\xa0\xdd\x99\x0b\x22\x2c\xfa\xdb\x6a\x80\x0f\x9d\xce\x7b\xd3\x99\x5c\xda\x61\xe1\xf5\x90\xe4\x12\x55\x55\x15\xaf\x9b\x91\x9b\xb3\x82\x3d\xa1\xb5\xd6\xbe\xb4\x7f\xff\x2a\x28\xac\xf8\xd7\xf4\x0d\xba\xe7\x26\x30\x38\x68\x0a\x4b\x64\x2d\x8a\x28\x04\x85\x09\xe2\xdb\x9d\x41\xc6\x5c\x23\xeb\x60\x5a\x4d\x1c\xc6\x4f\x14\x0f\xf5\xec\x7d\x46\xaf\xae\xf5\x53\x2a\xe1\x40\xf9\xa5\x0f\x9d\x27\x63\xf2\xd2\x50\x80\xb9\xaf\xc7\xd3\x5b\xec\x13\xa1\x1d\x34\xc4\xab\x95\xce\xeb\xfe\xdf\x0c\xea\xc7\x6e\x7a\xb1\xd6\x6b\x9d\xab\x61\x8a\xa0\x06\x67\x71\x5e\x60\x54\xa0\x6a\xdd\x76\xa7\x3a\xc5\xb9\xa0\xfb\xb7\xf1\x40\x15\x75\x7b\x9d\x07\xc7\x01\x14\xf4\xd3\x75\x9f\xac\x34\xc2\x2e\xa8\xea\x1c\xc9\xaf\x97\x61\xb6\x88\xfd\xfd\xb0\xf4\x81\x61\x56\x75\xc5\xb7\x07\x59\xa2\x02\xed\x80\xea\xc1\xf6\x02\x59\x65\x35\x37\xd1\x32\xbf\x2e\xdf\x77\x70\xfb\x37\x6f\x51\x30\x56\x59\x4a\x55\x8e\xa9\xff\x66\xdf\x85\x9c\xa4\xcf\xad\x14\x47\xcd\xe2\x29\x9f\xd2\x65\x8f\x8d\xb0\x1b\xdd\x15\xab\xfc\xef\x39\x1a\x1c\xe4\xe0\xd6\x12\x7d\xd9\x46\x40\x48\xb2\xf9\x2a\x18\x5d\xa8\x8a\xbc\x6d",
        128,
        "\xf2\x36\x60\xb3\x33\x75\xda\xde\x2f\x51\x19\xec\xdf\xee\x7c\x53\x39\x7a\x4a\xce\x54\xc0\xf5\x9b\xcc\xfa\x9b\xe7\x68\xe7\xd2\x87\xfa\x1e\xa5\xe8\x87\xa2\xda\x49\xa8\xb6\x77\x27\x30\xf3\x84\xf9\x0f\x97\x11\x1e\x77\x20\x7b\x14\x3d\x1a\xec\xea\x81\x35\x21\xf8\x91\x9a\x70\xcd\x0b\x7f\x09\x69\x42\xf9\x7c\xad\xe3\x12\x7b\x0f\xd9\x1c\xe1\x92\x6d\x45\xf4\xf6\xb2\x6b\xe7\x2b\x20\x31\xa4\x0c\x7f\x52\xc8\x4a\x07\x35\xee\xa6\xc5\xc2\x30\x64\x40\x75\xeb\xfc\x5d\xb0\xc3\x12\x80\x56\xe7\xa8\xf4\x95\x96\x93\x8d\x03\xe3\x2b",
        "\x31\xf3\x55\x1b\x29\x9c\x1e\xbc\xf1\xa6\x71\x11\xe6\x4e\x56\xba\x63\x61\xa0\xfc\xf6\xad\x81\x3f\xcc\x3f\x7b\xbc\x93\x7b\xfc\xb9\x91\xda\x38\x4b\x7c\x6b\x5e\x6a\x11\x0d\xbd\x6c\x4c\x9d\x94\xde\x21\x45\x43\x78\x55\x44\x2d\x1e\xca\x3a\x4b\xcb\xf4\x21\xde\x8d\x7b\x5a\x8d\x54\x52\x5a\xbb\x1d\xf6\x09\x5d\x52\xff\xf3\x3d\x4d\x74\xed\x2f\xb4\xc3\xaf\x43\x0f\xc0\xcc\x3b\xde\x9f\xd0\x5f\x10\x21\xca\x26\x7e\x95\xbc\x82\xf0\x9c\xd5\x0b\xd5\xcc\x7e\xc7\xed\xe6\x3f\x3e\x5b\x8e\xef\xb3\xd0\x24\xff\xf0\xec\x74\x79\xde\x98\x3b\xea\x9e\xd3\x6e\xd8\x71\xef\x5c\x65\x38\x9d\x83\x32\x64\x38\x2b\xbb\x6c\x48\xa6\xdc\x5b\xde\x54\x0a\x4b\xa8\xd9\x41\x63\xe6\x6d\x93\xc4\x15\xc3\x4b\x5c\x06\xb9\x65\x62\x6e\x85\x0d\x1e\xc7\x94\x54\x0d\xb2\x7c\x55\x18\x01\x17\x7a\x78\x1a\xaa\x32\x1f\x77\x12\x4e\x63\xc6\x3b\x42\x8a\xe8\x81\x6c\x5f\x14\x50\x5b\x33\xe4\xf1\x0a\x93\x06\x0c\xb4\x10\x5b\x03\x4b\x54\x57\x5c\x62\x52\xd1\x56\x1b\xbe\x24\x2f\xb9\xbe\x13\x71\xe4\x72\x61\x47\x2f\x91\x47\x2f\x81\xf6\x02\x94\x23\x57\xcd\xe6\x41\xcf\x73\x01\x5e\x16\x1d\x03\xfc\xce\x07\x55\xab\x6a\x7c\x92\x78\xa5\x35\xb2\x7a\x9d\xa4\xc0\x02\xf6\xf6\x12\x31\x22\x15\x43\xbe\x57\x9e\x9b\xc9\xd0\xd5\x23\x9e\x2f\xce\x7f\xcd\x1d\xd6\xea\x0a\xc1\x95\x4a\xaf\x27\xd7\xd8\x04\xf5\x49\x25\x6e\x95\x7b\x7e\x82\x66\xee\xf0\x2b\x6b\x90\x5f\x5f\xe6\xec\xb4\x72\x88\xa5\xf3\xd9\x74\x49\x84\x6c\xcb\x3a\xc5\x64\x04\x66\x97\xda\xcd\x05\xf1\xb6\x35\x76\x37\xe0\x00\x05\x2e\x44\x31\xd4\x2a\x48\x4a\xfe\x7d\xb8\x5d\x82\x1b\x1c\xcd\x37\xea\xa0\x13\x1f\x8d\x16\x67\xaf\x94\x0f\x32\xf2\xc2\xfe\x96\x9b",
    },
};

static const struct rsa_pss_test_pattern {
    uint8_t rsatype;
    uint8_t hash;
    uint32_t puk;
    const void* n;
    const void* prk;
    uint32_t msglen;
    const void* msg;
    uint32_t saltlen;
    const void* salt;
    const void* sig;
} rsa_pss_tp[] = {
    {
        RSA_2048,
        HASH_SHA_224,
        0x86c94f,
        "\xc5\x06\x2b\x58\xd8\x53\x9c\x76\x5e\x1e\x5d\xba\xf1\x4c\xf7\x5d\xd5\x6c\x2e\x13\x10\x5f\xec\xfd\x1a\x93\x0b\xbb\x59\x48\xff\x32\x8f\x12\x6a\xbe\x77\x93\x59\xca\x59\xbc\xa7\x52\xc3\x08\xd2\x81\x57\x3b\xc6\x17\x8b\x6c\x0f\xef\x7d\xc4\x45\xe4\xf8\x26\x43\x04\x37\xb9\xf9\xd7\x90\x58\x1d\xe5\x74\x9c\x2c\xb9\xcb\x26\xd4\x2b\x2f\xee\x15\xb6\xb2\x6f\x09\xc9\x96\x70\x33\x64\x23\xb8\x6b\xc5\xbe\xc7\x11\x13\x15\x7b\xe2\xd9\x44\xd7\xff\x3e\xeb\xff\xb2\x84\x13\x14\x3e\xa3\x67\x55\xdb\x0a\xe6\x2f\xf5\xb7\x24\xee\xcb\x3d\x31\x6b\x6b\xac\x67\xe8\x9c\xac\xd8\x17\x19\x37\xe2\xab\x19\xbd\x35\x3a\x89\xac\xea\x8c\x36\xf8\x1c\x89\xa6\x20\xd5\xfd\x2e\xff\xea\x89\x66\x01\xc7\xf9\xda\xca\x7f\x03\x3f\x63\x5a\x3a\x94\x33\x31\xd1\xb1\xb4\xf5\x28\x87\x90\xb5\x3a\xf3\x52\xf1\x12\x1c\xa1\xbe\xf2\x05\xf4\x0d\xc0\x12\xc4\x12\xb4\x0b\xdd\x27\x58\x5b\x94\x64\x66\xd7\x5f\x7e\xe0\xa7\xf9\xd5\x49\xb4\xbe\xce\x6f\x43\xac\x3e\xe6\x5f\xe7\xfd\x37\x12\x33\x59\xd9\xf1\xa8\x50\xad\x45\x0a\xaf\x5c\x94\xeb\x11\xde\xa3\xfc\x0f\xc6\xe9\x85\x6b\x18\x05\xef",
        "\x49\xe5\x78\x6b\xb4\xd3\x32\xf9\x45\x86\x32\x7b\xde\x08\x88\x75\x37\x9b\x75\xd1\x28\x48\x8f\x08\xe5\x74\xab\x47\x15\x30\x2a\x87\xee\xa5\x2d\x4c\x4a\x23\xd8\xb9\x7a\xf7\x94\x48\x04\x33\x7c\x5f\x55\xe1\x6b\xa9\xff\xaf\xc0\xc9\xfd\x9b\x88\xec\xa4\x43\xf3\x9b\x79\x67\x17\x0d\xdb\x8c\xe7\xdd\xb9\x3c\x60\x87\xc8\x06\x6c\x4a\x95\x53\x8a\x44\x1b\x9d\xc8\x0d\xc9\xf7\x81\x00\x54\xfd\x1e\x5c\x9d\x02\x50\xc9\x78\xbb\x2d\x74\x8a\xbe\x1e\x94\x65\xd7\x1a\x81\x65\xd3\x12\x6d\xce\x5d\xb2\xad\xac\xc0\x03\xe9\x06\x2b\xa3\x7a\x54\xb6\x3e\x5f\x49\xa4\xea\xfe\xbd\x7e\x4b\xf5\xb0\xa7\x96\xc2\xb3\xa9\x50\xfa\x09\xc7\x98\xd3\xfa\x3e\x86\xc4\xb6\x2c\x33\xba\x93\x65\xed\xa0\x54\xe5\xfe\x74\xa4\x1f\x21\xb5\x95\x02\x6a\xcf\x10\x93\xc9\x0a\x8c\x71\x72\x2f\x91\xaf\x1e\xd2\x9a\x41\xa2\x44\x9a\x32\x0f\xc7\xba\x31\x20\xe3\xe8\xc3\xe4\x24\x0c\x04\x92\x5c\xc6\x98\xec\xd6\x6c\x7c\x90\x6b\xdf\x24\x0a\xda\xd9\x72\xb4\xdf\xf4\x86\x9d\x40\x0b\x5d\x13\xe3\x3e\xeb\xa3\x8e\x07\x5e\x87\x2b\x0e\xd3\xe9\x1c\xc9\xc2\x83\x86\x7a\x4f\xfc\x39\x01\xd2\x06\x9f",
        128,
        "\xef\x10\xb0\x3c\x04\x57\x8b\xd5\xf7\x83\x35\x8d\xf3\x67\x45\x6a\x73\xde\x38\xc6\xfa\xb2\xc3\x54\x05\xbc\x68\x5e\x3d\x4c\x48\x50\xf2\xcb\x38\x7a\xc5\x9e\x16\x12\xa4\x4e\x5e\x78\xfc\xe6\xf8\xbe\x29\x9d\x54\x68\x32\xb5\xb9\x70\xb3\xa3\xda\x8e\x1a\x70\xab\xb6\x16\x5f\x72\xe1\x4d\xd0\x21\x10\x4e\x64\xe3\x8e\xc6\x62\xf5\x76\xf6\x5a\xb7\x76\x64\x08\x03\xd2\xd1\x7a\xbd\xac\x6c\x75\xab\x82\x45\x16\x87\xf8\x04\xb5\x53\xd8\xdb\x0e\xed\x57\xb9\xa3\xe3\x9a\xc1\x5c\x88\x78\xfa\x71\x48\x82\x48\x89\x38\x40\x9b\x24\xf1\xbe",
        15,
        "\x46\x37\x29\xb3\xea\xf4\x35\x02\xd9\xcf\xf1\x29\x92\x56\x81",
        "\x4a\x18\x3b\x82\x61\x6f\x3b\xbc\x27\xa1\x46\x71\x0b\x28\x72\x91\x61\xfe\xb1\x79\x00\xbe\x62\xe6\x9e\xed\x5d\x25\x4d\x15\xf3\x4b\xce\x52\xd6\xf3\xde\xba\x89\xa7\x87\xeb\xeb\x06\x11\xe2\x40\xcc\x23\xe1\x6a\xdd\x37\x96\xd4\xa2\x97\x83\xe2\xcb\xe8\x79\x7e\x06\x6c\xec\xbd\x66\x05\x9c\x39\x4f\x0e\x2f\x9e\x37\x7f\x1f\xfa\x19\x4f\xcb\x89\x5e\x1c\x48\x87\x4b\x9b\x64\x30\xa1\x3c\x77\x9f\x5c\xa2\x9e\x3f\x42\xbc\xa4\xb9\x16\x71\x05\x90\xab\x65\x01\x80\x9d\x64\x5a\x48\x85\xb0\x58\xdb\xa0\x64\x79\x71\xf0\x4f\x6f\x2f\x4a\x29\x6c\x45\xd8\x9d\xd8\x48\xb7\xc2\xf8\x77\x7e\xc5\x08\x46\xc9\x7d\x35\xc1\x2d\x54\xeb\xb6\xff\x16\x73\x27\xb1\xd4\xda\xed\xf4\x46\x80\x31\xb5\x90\x57\xd5\x7c\xed\xdb\x79\xfd\xd0\x13\x16\x7e\xe6\xe4\x6d\x91\x30\x69\x33\x22\xc3\xae\x67\x02\x90\x1a\x1e\x90\xbd\x4b\x62\x1d\x14\x19\x77\xd0\x68\x0a\xcd\x52\x49\x21\xbc\x54\x0e\x34\xac\x64\x0a\xce\x02\xf8\x9d\x54\x36\x80\x82\x83\xe0\x26\xe1\x38\xba\x3a\x5a\x43\x10\xfe\x1e\x04\x88\x33\xf9\xb5\x81\xba\xef\x5f\x89\x1f\x9c\xdb\x2f\x06\x73\xba\xfa\x11\xce\xab\xc7\xd7",
    },
    {
        RSA_2048,
        HASH_SHA_256,
        0x86c94f,
        "\xc5\x06\x2b\x58\xd8\x53\x9c\x76\x5e\x1e\x5d\xba\xf1\x4c\xf7\x5d\xd5\x6c\x2e\x13\x10\x5f\xec\xfd\x1a\x93\x0b\xbb\x59\x48\xff\x32\x8f\x12\x6a\xbe\x77\x93\x59\xca\x59\xbc\xa7\x52\xc3\x08\xd2\x81\x57\x3b\xc6\x17\x8b\x6c\x0f\xef\x7d\xc4\x45\xe4\xf8\x26\x43\x04\x37\xb9\xf9\xd7\x90\x58\x1d\xe5\x74\x9c\x2c\xb9\xcb\x26\xd4\x2b\x2f\xee\x15\xb6\xb2\x6f\x09\xc9\x96\x70\x33\x64\x23\xb8\x6b\xc5\xbe\xc7\x11\x13\x15\x7b\xe2\xd9\x44\xd7\xff\x3e\xeb\xff\xb2\x84\x13\x14\x3e\xa3\x67\x55\xdb\x0a\xe6\x2f\xf5\xb7\x24\xee\xcb\x3d\x31\x6b\x6b\xac\x67\xe8\x9c\xac\xd8\x17\x19\x37\xe2\xab\x19\xbd\x35\x3a\x89\xac\xea\x8c\x36\xf8\x1c\x89\xa6\x20\xd5\xfd\x2e\xff\xea\x89\x66\x01\xc7\xf9\xda\xca\x7f\x03\x3f\x63\x5a\x3a\x94\x33\x31\xd1\xb1\xb4\xf5\x28\x87\x90\xb5\x3a\xf3\x52\xf1\x12\x1c\xa1\xbe\xf2\x05\xf4\x0d\xc0\x12\xc4\x12\xb4\x0b\xdd\x27\x58\x5b\x94\x64\x66\xd7\x5f\x7e\xe0\xa7\xf9\xd5\x49\xb4\xbe\xce\x6f\x43\xac\x3e\xe6\x5f\xe7\xfd\x37\x12\x33\x59\xd9\xf1\xa8\x50\xad\x45\x0a\xaf\x5c\x94\xeb\x11\xde\xa3\xfc\x0f\xc6\xe9\x85\x6b\x18\x05\xef",
        "\x49\xe5\x78\x6b\xb4\xd3\x32\xf9\x45\x86\x32\x7b\xde\x08\x88\x75\x37\x9b\x75\xd1\x28\x48\x8f\x08\xe5\x74\xab\x47\x15\x30\x2a\x87\xee\xa5\x2d\x4c\x4a\x23\xd8\xb9\x7a\xf7\x94\x48\x04\x33\x7c\x5f\x55\xe1\x6b\xa9\xff\xaf\xc0\xc9\xfd\x9b\x88\xec\xa4\x43\xf3\x9b\x79\x67\x17\x0d\xdb\x8c\xe7\xdd\xb9\x3c\x60\x87\xc8\x06\x6c\x4a\x95\x53\x8a\x44\x1b\x9d\xc8\x0d\xc9\xf7\x81\x00\x54\xfd\x1e\x5c\x9d\x02\x50\xc9\x78\xbb\x2d\x74\x8a\xbe\x1e\x94\x65\xd7\x1a\x81\x65\xd3\x12\x6d\xce\x5d\xb2\xad\xac\xc0\x03\xe9\x06\x2b\xa3\x7a\x54\xb6\x3e\x5f\x49\xa4\xea\xfe\xbd\x7e\x4b\xf5\xb0\xa7\x96\xc2\xb3\xa9\x50\xfa\x09\xc7\x98\xd3\xfa\x3e\x86\xc4\xb6\x2c\x33\xba\x93\x65\xed\xa0\x54\xe5\xfe\x74\xa4\x1f\x21\xb5\x95\x02\x6a\xcf\x10\x93\xc9\x0a\x8c\x71\x72\x2f\x91\xaf\x1e\xd2\x9a\x41\xa2\x44\x9a\x32\x0f\xc7\xba\x31\x20\xe3\xe8\xc3\xe4\x24\x0c\x04\x92\x5c\xc6\x98\xec\xd6\x6c\x7c\x90\x6b\xdf\x24\x0a\xda\xd9\x72\xb4\xdf\xf4\x86\x9d\x40\x0b\x5d\x13\xe3\x3e\xeb\xa3\x8e\x07\x5e\x87\x2b\x0e\xd3\xe9\x1c\xc9\xc2\x83\x86\x7a\x4f\xfc\x39\x01\xd2\x06\x9f",
        128,
        "\xdf\xc2\x26\x04\xb9\x5d\x15\x32\x80\x59\x74\x5c\x6c\x98\xeb\x9d\xfb\x34\x7c\xf9\xf1\x70\xaf\xf1\x9d\xee\xec\x55\x5f\x22\x28\x5a\x67\x06\xc4\xec\xbf\x0f\xb1\x45\x8c\x60\xd9\xbf\x91\x3f\xba\xe6\xf4\xc5\x54\xd2\x45\xd9\x46\xb4\xbc\x5f\x34\xae\xc2\xac\x6b\xe8\xb3\x3d\xc8\xe0\xe3\xa9\xd6\x01\xdf\xd5\x36\x78\xf5\x67\x44\x43\xf6\x7d\xf7\x8a\x3a\x9e\x09\x33\xe5\xf1\x58\xb1\x69\xac\x8d\x1c\x4c\xd0\xfb\x87\x2c\x14\xca\x8e\x00\x1e\x54\x2e\xa0\xf9\xcf\xda\x88\xc4\x2d\xca\xd8\xa7\x40\x97\xa0\x0c\x22\x05\x5b\x0b\xd4\x1f",
        20,
        "\xe1\x25\x6f\xc1\xee\xef\x81\x77\x3f\xdd\x54\x65\x7e\x40\x07\xfd\xe6\xbc\xb9\xb1",
        "\x8b\x46\xf2\xc8\x89\xd8\x19\xf8\x60\xaf\x0a\x6c\x4c\x88\x9e\x4d\x14\x36\xc6\xca\x17\x44\x64\xd2\x2a\xe1\x1b\x9c\xcc\x26\x5d\x74\x3c\x67\xe5\x69\xac\xcb\xc5\xa8\x0d\x4d\xd5\xf1\xbf\x40\x39\xe2\x3d\xe5\x2a\xec\xe4\x02\x91\xc7\x5f\x89\x36\xc5\x8c\x9a\x2f\x77\xa7\x80\xbb\xe7\xad\x31\xeb\x76\x74\x2f\x7b\x2b\x8b\x14\xca\x1a\x71\x96\xaf\x7e\x67\x3a\x3c\xfc\x23\x7d\x50\xf6\x15\xb7\x5c\xf4\xa7\xea\x78\xa9\x48\xbe\xda\xf9\x24\x24\x94\xb4\x1e\x1d\xb5\x1f\x43\x7f\x15\xfd\x25\x51\xbb\x5d\x24\xee\xfb\x1c\x3e\x60\xf0\x36\x94\xd0\x03\x3a\x1e\x0a\x9b\x9f\x5e\x4a\xb9\x7d\x45\x7d\xff\x9b\x9d\xa5\x16\xdc\x22\x6d\x6d\x65\x29\x50\x03\x08\xed\x74\xa2\xe6\xd9\xf3\xc1\x05\x95\x78\x8a\x52\xa1\xbc\x06\x64\xae\xdf\x33\xef\xc8\xba\xdd\x03\x7e\xb7\xb8\x80\x77\x2b\xdb\x04\xa6\x04\x6e\x9e\xde\xee\x41\x97\xc2\x55\x07\xfb\x0f\x11\xab\x1c\x9f\x63\xf5\x3c\x88\x20\xea\x84\x05\xcf\xd7\x72\x16\x92\x47\x5b\x4d\x72\x35\x5f\xa9\xa3\x80\x4f\x29\xe6\xb6\xa7\xb0\x59\xc4\x44\x1d\x54\xb2\x8e\x4e\xed\x25\x29\xc6\x10\x3b\x54\x32\xc7\x13\x32\xce\x74\x2b\xcc",
    },
    {
        RSA_3072,
        HASH_SHA_384,
        0x1415a7,
        "\xa7\xa1\x88\x2a\x7f\xb8\x96\x78\x60\x34\xd0\x7f\xb1\xb9\xf6\x32\x7c\x27\xbd\xd7\xce\x6f\xe3\x9c\x28\x5a\xe3\xb6\xc3\x42\x59\xad\xc0\xdc\x4f\x7b\x9c\x7d\xec\x3c\xa4\xa2\x0d\x34\x07\x33\x9e\xed\xd7\xa1\x2a\x42\x1d\xa1\x8f\x59\x54\x67\x3c\xac\x2f\xf0\x59\x15\x6e\xcc\x73\xc6\x86\x1e\xc7\x61\xe6\xa0\xf2\xa5\xa0\x33\xa6\x76\x8c\x6a\x42\xd8\xb4\x59\xe1\xb4\x93\x23\x49\xe8\x4e\xfd\x92\xdf\x59\xb4\x59\x35\xf3\xd0\xe3\x08\x17\xc6\x62\x01\xaa\x99\xd0\x7a\xe3\x6c\x5d\x74\xf4\x08\xd6\x9c\xc0\x8f\x04\x41\x51\xff\x49\x60\xe5\x31\x36\x0c\xb1\x90\x77\x83\x3a\xdf\x7b\xce\x77\xec\xfa\xa1\x33\xc0\xcc\xc6\x3c\x93\xb8\x56\x81\x45\x69\xe0\xb9\x88\x4e\xe5\x54\x06\x1b\x9a\x20\xab\x46\xc3\x82\x63\xc0\x94\xda\xe7\x91\xaa\x61\xa1\x7f\x8d\x16\xf0\xe8\x5b\x7e\x5c\xe3\xb0\x67\xec\xe8\x9e\x20\xbc\x4e\x8f\x1a\xe8\x14\xb2\x76\xd2\x34\xe0\x4f\x4e\x76\x6f\x50\x1d\xa7\x4e\xa7\xe3\x81\x7c\x24\xea\x35\xd0\x16\x67\x6c\xec\xe6\x52\xb8\x23\xb0\x51\x62\x55\x73\xca\x92\x75\x7f\xc7\x20\xd2\x54\xec\xf1\xdc\xbb\xfd\x21\xd9\x83\x07\x56\x1e\xca\xab\x54\x54\x80\xc7\xc5\x2a\xd7\xe9\xfa\x6b\x59\x7f\x5f\xe5\x50\x55\x9c\x2f\xe9\x23\x20\x5a\xc1\x76\x1a\x99\x73\x7c\xa0\x2d\x7b\x19\x82\x2e\x00\x8a\x89\x69\x34\x9c\x87\xfb\x87\x4c\x81\x62\x0e\x38\xf6\x13\xc8\x52\x1f\x03\x81\xfe\x5b\xa5\x5b\x74\x82\x7d\xad\x3e\x1c\xf2\xaa\x29\xc6\x93\x36\x29\xf2\xb2\x86\xad\x11\xbe\x88\xfa\x64\x36\xe7\xe3\xf6\x4a\x75\xe3\x59\x52\x90\xdc\x0d\x1c\xd5\xee\xe7\xaa\xac\x54\x95\x9c\xc5\x3b\xd5\xa9\x34\xa3\x65\xe7\x2d\xd8\x1a\x2b\xd4\xfb\x9a\x67\x82\x1b\xff\xed\xf2\xef\x2b\xd9\x49\x13\xde\x8b",
        "\x07\x3a\x5f\xc4\xcd\x64\x2f\x61\x13\xdf\xfc\x4f\x84\x03\x5c\xee\x3a\x2b\x8a\xcc\x54\x97\x03\x75\x1a\x1d\x6a\x5e\xaa\x13\x48\x72\x29\xa5\x8e\xf7\xd7\xa5\x22\xbb\x9f\x4f\x25\x51\x0f\x1a\xa0\xf7\x4c\x6a\x8f\xc8\xa5\xc5\xbe\x8b\x91\xa6\x74\xed\xe5\x0e\x92\xf7\xe3\x4a\x90\xa3\xc9\xda\x99\x9f\xff\xb1\xd6\x95\xe4\x58\x8f\x45\x12\x56\xc1\x63\x48\x4c\x15\x13\x50\xcb\x9c\x78\x25\xa7\xd9\x10\x84\x5e\xe5\xcf\x82\x6f\xec\xf9\xa7\xc0\xfb\xbb\xba\x22\xbb\x4a\x53\x1c\x13\x1d\x2e\x77\x61\xba\x89\x8f\x00\x2e\xbe\xf8\xab\x87\x21\x85\x11\xf8\x1d\x32\x66\xe1\xec\x07\xa7\xca\x86\x22\x51\x4c\x6d\xfd\xc8\x6c\x67\x67\x9a\x2c\x8f\x5f\x03\x1d\xe9\xa0\xc2\x2b\x5a\x88\x06\x0b\x46\xee\x0c\x64\xd3\xb9\xaf\x3c\x0a\x37\x9b\xcd\x9c\x6a\x1b\x51\xcf\x64\x80\x45\x6d\x3f\xd6\xde\xf9\x4c\xd2\xa6\xc1\x71\xdd\x3f\x01\x0e\x3c\x9d\x66\x2b\xc8\x57\x20\x82\x48\xc9\x4e\xbc\xb9\xfd\x99\x7b\x9f\xf4\xa7\xe5\xfd\x95\x55\x85\x69\x90\x65\x25\xe7\x41\xd7\x83\x44\xf6\xf6\xcf\xdb\xd5\x9d\x4f\xaa\x52\xee\x3f\xa9\x64\xfb\x7c\xcc\xb2\xd6\xbe\x19\x35\xd2\x11\xfe\x14\x98\x21\x77\x16\x27\x39\x39\xa9\x46\x08\x1f\xd8\x50\x99\x13\xfd\x47\x74\x7c\x5c\x2f\x03\xef\xd4\xd6\xfc\x9c\x6f\xcf\xd8\x40\x2e\x9f\x40\xa0\xa5\xb3\xde\x3c\xa2\xb3\xc0\xfa\xc9\x45\x69\x38\xfa\xa6\xcf\x2c\x20\xe3\x91\x2e\x59\x81\xc9\x87\x6d\x8c\xa1\xff\x29\xb8\x7a\x15\xee\xae\x0c\xcc\xe3\xf8\xa8\xf1\xe4\x05\x09\x1c\x08\x3b\x98\xbc\xc5\xfe\x0d\x0d\xea\xae\x33\xc6\x7c\x03\x94\x43\x7f\x0e\xcc\xb3\x85\xb7\xef\xb1\x7a\xee\xbb\xa8\xaf\xae\xcc\xa3\x0a\x2f\x63\xea\xc8\xf0\xac\x8f\x1e\xac\xad\x85\xbb\xca\xf3\x96\x0b",
        128,
        "\xa0\x5e\x57\x82\xa9\x6e\xe6\xd6\xf1\x0b\xe8\x83\x0d\x8c\x27\xc0\xac\xf2\x72\xab\xbf\x77\xe6\x84\xdd\x6a\x6c\x19\xe5\x39\x83\x81\xe5\xd0\x40\x0d\x3a\x21\x92\x7c\xf9\x04\xcb\x6e\x8e\x42\x5c\x1c\xa3\xec\xe0\x45\x44\xf2\x5d\x6c\x40\xf0\xc6\x40\xd2\x4b\xc4\x5c\x80\x7d\xb5\x30\x44\xad\xf6\x3f\xea\x83\x5d\x8c\xb9\x3a\x0a\x4e\x55\xf7\x60\xeb\xe4\x59\x4e\x24\x70\x51\xd3\x8d\x8c\x34\xc1\x41\x3b\x0e\xc1\xd3\x0d\x3a\x97\x88\x8b\x2f\xa7\xc3\xd5\x9d\xb8\xc0\x8a\xb9\xf9\x85\xe8\xd4\x41\x16\x35\x33\x9b\xe9\x5d\x1b\x02\x99",
        48,
        "\x61\xa7\x62\xf8\x96\x8d\x5f\x36\x7e\x2d\xbc\xac\xb4\x02\x16\x53\xdc\x75\x43\x7d\x90\x00\xe3\x16\x9d\x94\x37\x29\x70\x38\x37\xa5\xcb\xf4\xde\x62\xbd\xed\xc9\x5f\xd0\xd1\x00\x4e\x84\x75\x14\x52",
        "\x87\xd8\x02\x75\xdf\x7b\x19\x6b\x7e\x1d\x0a\x41\x14\x77\x19\xd7\x73\xed\xd8\x0b\x56\x27\x30\x1a\x50\x0d\x91\x66\x5b\xa8\x60\x76\xe6\xa3\x1c\x8f\x3a\xe8\x6a\xed\xb6\x43\xfe\x2a\xf2\x23\x97\x6e\xa4\xeb\x3d\x4d\xca\x2c\xbc\xf8\x1f\xfd\x14\xb7\xef\x7d\xe3\xee\x35\x5a\x8d\x0f\x41\x43\xe5\xb0\xf0\xa0\x95\x0a\x42\x81\x11\x02\xe6\x02\xcd\x21\x4e\x1c\x94\x5c\x47\xe8\xb7\xb6\x6d\x50\x71\x03\xc3\x45\x6f\x40\x4f\x9c\x48\xaa\x7f\xe4\x8d\xee\x0a\xad\x05\xe5\x99\xf2\x42\xad\xcf\x8c\xcb\x0c\xc9\xdb\x3a\x6c\x24\x4a\x91\x35\x51\xab\x59\x56\x00\xec\xfb\xb6\x7c\x25\xa9\x5b\x54\xf4\x05\x43\x97\xab\xe4\x76\x50\xe5\xc4\x99\x1e\xda\xf1\x44\x1b\xa9\xc8\xe3\xfb\xed\x90\x4f\xfb\xc9\x77\x14\x2e\xbd\xc8\x47\x69\x86\x5a\x21\x51\x58\xd5\xb0\x52\xe7\x5d\xe3\x18\xd7\x50\x12\x17\x2e\x28\xc3\x1d\xb2\xd8\xbd\x4e\xdc\xa7\x87\x21\x6d\xde\x2a\x73\x87\xc5\x43\xf1\x62\xfc\x91\x92\x49\x18\xfd\x6c\x84\x5b\xf1\xeb\xc0\x22\x0a\x10\x27\xfb\x42\x27\x34\x0c\xa4\xcb\x0f\x18\x3e\x5b\x34\xb1\xe7\xf9\x3e\x14\xfa\x57\xbb\x9d\x2d\x2e\xa5\x3f\x86\xd8\x38\xbc\xbe\x3f\x05\x5b\x47\x3b\x0b\x46\x9a\xfd\x29\x60\xc0\xd7\x6c\xe2\xc3\x0f\x3d\x49\xa3\xb2\x90\x65\xbb\x92\x60\x24\x8e\x72\x8c\xbe\x32\x8b\xdf\x50\x2b\x10\x9e\x1f\x20\xb9\xd0\x37\x86\x0c\xf9\xe2\x61\x61\x1b\x4c\xbf\x27\xff\x9b\x5b\xf4\x25\xb2\x61\x2a\xfc\x7c\xfa\x31\x38\xf7\x8a\xd2\x60\x77\xcb\xfb\x94\x7f\xb2\xaa\xe6\xf4\xbe\x85\xab\x2d\x1a\x15\x86\x08\x39\xb8\x22\xdd\x03\xa1\xa9\x2a\x19\xa5\xc7\x24\x4e\x98\xbd\xf5\x61\x62\x5c\xa2\xa8\xdf\x41\x0f\xf8\x55\x75\x2e\xbd\xf3\xd4\x9f\x5e\xb9\x8f\x22\x8a\xcd\xd5\x27\x91",
    },
    {
        RSA_3072,
        HASH_SHA_512,
        0x1415a7,
        "\xa7\xa1\x88\x2a\x7f\xb8\x96\x78\x60\x34\xd0\x7f\xb1\xb9\xf6\x32\x7c\x27\xbd\xd7\xce\x6f\xe3\x9c\x28\x5a\xe3\xb6\xc3\x42\x59\xad\xc0\xdc\x4f\x7b\x9c\x7d\xec\x3c\xa4\xa2\x0d\x34\x07\x33\x9e\xed\xd7\xa1\x2a\x42\x1d\xa1\x8f\x59\x54\x67\x3c\xac\x2f\xf0\x59\x15\x6e\xcc\x73\xc6\x86\x1e\xc7\x61\xe6\xa0\xf2\xa5\xa0\x33\xa6\x76\x8c\x6a\x42\xd8\xb4\x59\xe1\xb4\x93\x23\x49\xe8\x4e\xfd\x92\xdf\x59\xb4\x59\x35\xf3\xd0\xe3\x08\x17\xc6\x62\x01\xaa\x99\xd0\x7a\xe3\x6c\x5d\x74\xf4\x08\xd6\x9c\xc0\x8f\x04\x41\x51\xff\x49\x60\xe5\x31\x36\x0c\xb1\x90\x77\x83\x3a\xdf\x7b\xce\x77\xec\xfa\xa1\x33\xc0\xcc\xc6\x3c\x93\xb8\x56\x81\x45\x69\xe0\xb9\x88\x4e\xe5\x54\x06\x1b\x9a\x20\xab\x46\xc3\x82\x63\xc0\x94\xda\xe7\x91\xaa\x61\xa1\x7f\x8d\x16\xf0\xe8\x5b\x7e\x5c\xe3\xb0\x67\xec\xe8\x9e\x20\xbc\x4e\x8f\x1a\xe8\x14\xb2\x76\xd2\x34\xe0\x4f\x4e\x76\x6f\x50\x1d\xa7\x4e\xa7\xe3\x81\x7c\x24\xea\x35\xd0\x16\x67\x6c\xec\xe6\x52\xb8\x23\xb0\x51\x62\x55\x73\xca\x92\x75\x7f\xc7\x20\xd2\x54\xec\xf1\xdc\xbb\xfd\x21\xd9\x83\x07\x56\x1e\xca\xab\x54\x54\x80\xc7\xc5\x2a\xd7\xe9\xfa\x6b\x59\x7f\x5f\xe5\x50\x55\x9c\x2f\xe9\x23\x20\x5a\xc1\x76\x1a\x99\x73\x7c\xa0\x2d\x7b\x19\x82\x2e\x00\x8a\x89\x69\x34\x9c\x87\xfb\x87\x4c\x81\x62\x0e\x38\xf6\x13\xc8\x52\x1f\x03\x81\xfe\x5b\xa5\x5b\x74\x82\x7d\xad\x3e\x1c\xf2\xaa\x29\xc6\x93\x36\x29\xf2\xb2\x86\xad\x11\xbe\x88\xfa\x64\x36\xe7\xe3\xf6\x4a\x75\xe3\x59\x52\x90\xdc\x0d\x1c\xd5\xee\xe7\xaa\xac\x54\x95\x9c\xc5\x3b\xd5\xa9\x34\xa3\x65\xe7\x2d\xd8\x1a\x2b\xd4\xfb\x9a\x67\x82\x1b\xff\xed\xf2\xef\x2b\xd9\x49\x13\xde\x8b",
        "\x07\x3a\x5f\xc4\xcd\x64\x2f\x61\x13\xdf\xfc\x4f\x84\x03\x5c\xee\x3a\x2b\x8a\xcc\x54\x97\x03\x75\x1a\x1d\x6a\x5e\xaa\x13\x48\x72\x29\xa5\x8e\xf7\xd7\xa5\x22\xbb\x9f\x4f\x25\x51\x0f\x1a\xa0\xf7\x4c\x6a\x8f\xc8\xa5\xc5\xbe\x8b\x91\xa6\x74\xed\xe5\x0e\x92\xf7\xe3\x4a\x90\xa3\xc9\xda\x99\x9f\xff\xb1\xd6\x95\xe4\x58\x8f\x45\x12\x56\xc1\x63\x48\x4c\x15\x13\x50\xcb\x9c\x78\x25\xa7\xd9\x10\x84\x5e\xe5\xcf\x82\x6f\xec\xf9\xa7\xc0\xfb\xbb\xba\x22\xbb\x4a\x53\x1c\x13\x1d\x2e\x77\x61\xba\x89\x8f\x00\x2e\xbe\xf8\xab\x87\x21\x85\x11\xf8\x1d\x32\x66\xe1\xec\x07\xa7\xca\x86\x22\x51\x4c\x6d\xfd\xc8\x6c\x67\x67\x9a\x2c\x8f\x5f\x03\x1d\xe9\xa0\xc2\x2b\x5a\x88\x06\x0b\x46\xee\x0c\x64\xd3\xb9\xaf\x3c\x0a\x37\x9b\xcd\x9c\x6a\x1b\x51\xcf\x64\x80\x45\x6d\x3f\xd6\xde\xf9\x4c\xd2\xa6\xc1\x71\xdd\x3f\x01\x0e\x3c\x9d\x66\x2b\xc8\x57\x20\x82\x48\xc9\x4e\xbc\xb9\xfd\x99\x7b\x9f\xf4\xa7\xe5\xfd\x95\x55\x85\x69\x90\x65\x25\xe7\x41\xd7\x83\x44\xf6\xf6\xcf\xdb\xd5\x9d\x4f\xaa\x52\xee\x3f\xa9\x64\xfb\x7c\xcc\xb2\xd6\xbe\x19\x35\xd2\x11\xfe\x14\x98\x21\x77\x16\x27\x39\x39\xa9\x46\x08\x1f\xd8\x50\x99\x13\xfd\x47\x74\x7c\x5c\x2f\x03\xef\xd4\xd6\xfc\x9c\x6f\xcf\xd8\x40\x2e\x9f\x40\xa0\xa5\xb3\xde\x3c\xa2\xb3\xc0\xfa\xc9\x45\x69\x38\xfa\xa6\xcf\x2c\x20\xe3\x91\x2e\x59\x81\xc9\x87\x6d\x8c\xa1\xff\x29\xb8\x7a\x15\xee\xae\x0c\xcc\xe3\xf8\xa8\xf1\xe4\x05\x09\x1c\x08\x3b\x98\xbc\xc5\xfe\x0d\x0d\xea\xae\x33\xc6\x7c\x03\x94\x43\x7f\x0e\xcc\xb3\x85\xb7\xef\xb1\x7a\xee\xbb\xa8\xaf\xae\xcc\xa3\x0a\x2f\x63\xea\xc8\xf0\xac\x8f\x1e\xac\xad\x85\xbb\xca\xf3\x96\x0b",
        128,
        "\x44\x24\x0c\xe5\x19\xf0\x02\x39\xbd\x66\xba\x03\xc8\x4d\x31\x60\xb1\xce\x39\xe3\x93\x28\x66\xe5\x31\xa6\x2b\x1c\x37\xcf\x41\x70\xc3\xdc\x48\x09\x23\x6f\xb1\xad\xe1\x81\xdb\x49\xfc\x9c\x7c\xcd\x79\x4b\x43\x3d\x1a\xd0\xbc\x05\x6e\x14\x73\x8e\x0a\xe4\x5c\x0e\x15\x59\x72\xa4\x0a\x98\x9f\xa4\xb9\xbc\xdc\x30\x8f\x11\x99\x08\x18\x83\x5f\xa2\xc2\x56\xb4\x7e\xe4\x17\x3f\xb4\xfe\xd2\x2c\xcf\x43\x85\xd2\xdd\x54\xd5\x93\xc7\x4f\x00\x04\xdf\x08\x13\x4e\xb8\x96\x5d\xd5\x3a\x12\x23\x17\xf5\x9b\x95\xd6\xb6\x9d\x01\x79\x58",
        62,
        "\x2d\x0c\x49\xb2\x07\x89\xf3\x95\x02\xee\xfd\x09\x2a\x2b\x6a\x9b\x27\x57\xc1\x45\x61\x47\x56\x9a\x68\x5f\xca\x44\x92\xa8\xd5\xb0\xe6\x23\x43\x08\x38\x5d\x3d\x62\x96\x44\xca\x37\xe3\x39\x96\x16\xc2\x66\xf1\x99\xb6\x52\x1a\x99\x87\xb2\xbe\x9e\xe7\x83",
        "\x8f\x47\xab\xc2\x32\x6e\x22\xcf\x62\x40\x45\x08\xb4\x42\xe8\x1a\xd4\x5a\xff\xf7\x27\x40\x96\xb9\xa1\x3e\x47\x8c\xdd\x0a\x72\xf9\x9a\x76\xbf\x51\x7f\x1b\xb0\xf8\x72\xa5\x23\xd8\xc5\x88\xd4\x40\x25\x69\xe9\x48\xfd\x6a\x10\x8a\xe1\xa4\x5c\x65\x83\x08\x28\xa1\x0e\x94\xd4\x32\x76\x53\x14\xba\x82\xea\xd3\x10\xfc\x87\xac\x99\xa5\xb3\x9f\x30\xab\x88\x20\xbf\x69\xe6\x93\x4a\x9c\x1c\x91\x5c\x19\xf3\x6e\xa7\x71\x7e\xaf\xf7\xaf\x67\xb4\x99\x13\x15\xb1\x87\x3b\xa9\x29\xbe\xdf\x18\xa9\x75\xbe\x80\x8e\x7a\xa1\x4a\x67\x26\x12\x6c\x79\xcc\x93\xf6\x95\x41\xc5\xce\xfd\xeb\x5b\x67\xec\x27\x9d\x8f\x5a\x44\x65\x83\xe4\xb4\xfa\xed\x16\x85\x14\x0e\xe4\xb3\xb7\x57\xc8\xff\x4a\x1e\xf9\xcd\x76\xa8\x8e\x05\x31\x9e\xe6\x20\x03\xd2\xd7\x72\x90\xc9\x4c\x57\x9b\x0c\xa2\xab\x0d\xeb\x31\x76\xef\x10\xa3\xfd\xb8\x5c\x80\xff\xbc\x9e\x2a\x66\x5a\x23\x74\x4f\xc8\x36\xf9\xa9\xa1\x03\xcd\x9f\xb7\x56\x95\x23\x56\xa2\xf1\xac\xdd\x68\xa6\x45\xe2\x01\x79\x00\x65\x58\xb5\xd4\xd0\xb9\xb0\xbd\x3a\xdf\x5e\x29\x0f\x49\xda\xe6\x0b\x9d\x19\x92\x09\x53\xea\x8b\xb2\x37\xd5\xb3\xdc\xfe\x14\x9a\x60\xf1\x2a\x4e\xe3\xa8\x89\xb3\x3b\xcd\x3a\x3b\x75\x3d\x61\x07\x57\xcb\xcd\x09\x3d\xd5\xa7\x34\x25\x53\x33\x68\x96\x95\xab\x63\x69\x63\xe3\xd2\x15\xa8\xe7\x7f\xf3\x19\x73\x71\x8a\x49\x44\xa1\xe9\xe4\x4f\x45\x75\x4d\x39\xf6\xfa\x43\x1c\x53\xf9\xa2\xef\x36\xe1\x6a\x5f\x70\x63\x6e\xb5\xfb\xa5\x4e\x15\xc2\x0a\x71\x4f\x28\x09\xa7\xcf\xf4\xb8\xdc\x11\x65\xf8\x36\x60\x7e\xb5\xa5\xa3\xbb\x0c\x45\x67\xee\xe2\x69\x41\xfe\xf4\x6f\xb4\x1e\x73\xb5\x65\xc0\xcf\x8c\x72\xe4\x04\x22\x12\x64",
    },
    {
        RSA_3072,
        HASH_SHA_512_224,
        0x1fdecf,
        "\xa9\xd6\x49\x9f\x2f\x8b\xd5\xc8\x48\x19\x4a\x6b\x44\x4e\xa4\x87\x00\xb1\x3a\x19\x88\x75\x3c\xbd\x18\x7d\x6e\x5a\xd8\xb9\x93\x47\xa2\x7a\x0f\x0c\x3b\xdc\x03\x8e\x74\xb8\xda\xb1\xa9\x58\xfb\x19\x88\x37\x7d\xe0\x0e\x4a\x1c\x8b\x9f\xde\x61\xdf\x9c\xbf\x6c\x6d\xf2\x0c\x57\xd1\xeb\xb9\x99\x88\x20\x87\x84\xcb\x2c\xcf\x06\x7e\x4c\x1b\xd2\x69\xf7\x4d\x8b\x89\x78\x96\xaa\xf7\xe4\x90\x1b\x78\x61\x14\x34\x40\xf0\x54\xc7\xf5\x3f\x0e\x3a\x29\x24\x86\x77\xd7\x07\xe4\x62\x4e\x4e\x2c\x5d\x07\x5b\x98\xbf\x0a\x18\xbe\x78\x09\x05\xa1\x58\x8a\xa3\x44\x0c\xe2\xd5\x76\x0e\xcc\x76\x7b\x1c\x43\xcb\xd0\x09\x24\x42\x84\x78\x92\x3f\xbe\x6f\x46\x02\xfc\xe3\x61\x84\xd2\x1f\xb8\x95\xb0\x4e\x6a\x8c\xde\x5f\x0b\x87\x98\x11\x0c\xb0\x49\x71\x55\xbe\x53\x36\xb9\xfb\xc0\x52\x9a\xb9\x98\x0c\x85\xba\x0e\xdc\xb4\xaf\x2d\xbc\x7c\xd2\x68\xb2\xf6\x99\xd1\x5f\x2a\x7e\x91\x51\x0f\xd7\x82\xc5\x81\x67\x2d\xfc\x1d\x1c\xa8\xe7\x98\xf7\x0e\xe5\x60\x80\xdb\x77\x47\x01\x18\xcf\xc3\x98\xef\xa7\x28\x47\x1e\x5c\x4f\xfd\xad\xdd\xfb\x32\x32\x25\x1e\x1b\xf6\x1e\x29\x5a\xcf\x80\xd8\x74\xcc\xc2\xec\x05\x2a\xc1\x80\x62\x76\xf9\x8e\xaf\x25\xd2\xf9\x15\x68\x53\xea\x3f\x27\xa3\xf0\xad\x6b\x9c\xff\x46\xb0\xde\xed\x82\xfd\x9f\x51\x75\xb6\xf8\x45\x76\x8b\x45\x88\x1f\xb5\xe5\x84\x12\x90\x33\x16\x12\x32\xa4\xda\x53\x75\xa7\x19\x72\x9c\x8f\x42\x73\x90\xc2\x85\x99\x97\xa5\xac\x21\xbf\xc7\xc4\xcb\x3c\x43\x3d\x29\x26\x5a\x19\x39\x98\x68\xa8\xc1\x67\x44\xbb\xb5\xe4\x43\x50\xc8\xb2\xb3\xac\xf7\x66\x96\x6e\xe0\x4e\x91\xdb\x3b\x56\x40\x81\xd7\xb4\x56\xd9\xd7\x8d\x46\xac\x43\x85\x77\xbb",
        "\x18\x40\x2a\xa3\x3d\x47\xf2\x7b\xd0\xa2\x1f\xf7\x64\x13\x2a\xa9\x3d\xa9\x5e\x75\xe6\xd5\xfc\xd0\x38\xb0\xbc\x89\xc9\x4c\xa0\xfc\x65\xff\x7d\x41\x45\xd5\x0d\xec\x72\xd0\xa6\xd4\xa2\xab\x33\x1b\x5c\xde\xf5\x97\x7d\xb2\x25\x1b\xd3\xab\x0d\xa5\x28\x19\x3f\x5c\x47\xaf\xd4\x43\x25\x25\xd0\x75\x86\x6c\x15\x43\x48\x9a\x92\x53\x52\xd9\x7e\x91\xaf\x47\x1b\xb9\x18\x17\x6f\x9f\x4c\x6f\xf9\x1d\x98\x56\x0b\x07\x3d\xf2\x5c\xcb\x85\x0f\xb6\xbf\x6a\x1c\xfe\xbb\x89\x5e\x11\xe5\x00\xf5\x1c\xd5\x5e\x3f\xf8\x52\x03\xe7\x53\xbe\x37\x97\xfa\xdb\xa4\xe7\x10\xac\x18\x38\xfc\x19\x17\xac\x12\xb4\xa8\xd0\x1a\xcf\x9d\x9f\xb1\x09\x2f\x95\xea\x86\x12\x88\xca\x4b\x61\x87\x93\x75\x4d\x2e\xcb\xec\x3d\x16\x5e\x08\x13\x3b\xf6\x1e\x12\xce\x79\x9d\x57\x57\x81\x1c\xc9\xfe\x1b\x2e\x63\xc9\xfd\x19\xb4\xf1\x13\x90\xf8\xdc\xdc\x85\x66\x72\x39\xcb\x77\x62\x7e\x93\x07\x05\x4a\x65\xa2\xdc\xd5\x41\x1e\xa4\x68\xad\xc6\x60\x2e\xb9\xe7\x18\x92\xc4\xa3\x2f\xa1\xf3\x53\xdd\x3c\x95\x59\xd2\xbf\x2f\x5f\x37\x31\x04\x57\x45\x87\x9e\x1b\x5a\x4d\xe4\x6c\x5a\xea\x13\x80\x01\x68\x23\xeb\x48\xe4\xe2\xe0\xf5\x84\x54\x07\xf0\x3c\x2c\x34\xec\x6c\xd0\x96\x04\xd8\x7c\x36\xf3\x1c\x2f\x09\xb1\x94\xf7\x7a\xc2\x7b\x56\xdc\xe1\xbc\x58\x2c\x55\xc4\x39\x89\x78\x76\xf4\x9e\x8d\xa0\xf6\xf1\x5f\xd3\x55\xe0\x5e\x22\x54\xcc\x67\xc3\x46\x71\x18\x26\x22\x42\x4d\xac\x86\xf6\x80\xf0\x8e\xb3\x26\xa1\x46\xe4\x94\xd1\x27\x16\x8c\x4f\xf0\xb2\x23\xc1\x2c\xf7\x61\xcf\x1a\xd2\xed\x6c\xc5\xde\xf7\xff\x28\xb9\x12\xb8\xa2\xcd\x31\x30\x83\x95\x02\x84\xbd\x71\x70\x83\x9a\x48\x28\xf6\x72\xef\x22\xef\xdf",
        128,
        "\x94\x7f\xca\x2f\xdd\x2e\x5f\xd2\x10\x80\xe5\x0c\x45\x80\x4d\xd6\x1b\x9a\x66\x97\xf4\xfe\xaf\xa3\x62\x45\x6a\x01\xdc\x57\xf1\x71\xb6\x8c\x4d\xad\x50\x11\x05\xf0\x8d\x8e\x34\xb5\x86\x05\xde\xc1\x80\xfe\x84\x63\x1c\xe1\xf6\xfb\xce\xa3\x69\xb9\x90\xa4\xc9\xa7\xd8\xd8\x51\xea\xc7\x26\x58\x45\xa3\x0d\x6e\xde\x87\x8d\xa7\x45\x59\x45\x37\xb2\xfd\xd9\x3f\x8e\xc8\x96\xe7\x35\x38\x59\xad\xfb\xe2\xac\xfd\x6d\xab\x33\x01\xd9\x3b\x47\xba\x10\xaf\xe0\x50\x6a\x8e\xb8\xa6\x0b\xff\xad\x32\x65\x39\x67\x0c\xfe\x3a\x3c\x44\x73",
        0,
        NULL,
        "\x4a\x9b\xf3\xcd\x69\x36\x9c\xeb\xe2\x34\x6d\x86\x6a\xa5\x02\x76\x59\x83\xd5\x22\x21\xa2\x6b\x33\x52\x8c\x97\xfb\x8b\x3e\x33\xbc\x83\x86\x61\x90\x12\xf3\xeb\x0c\x21\x32\x67\x98\xf6\x3b\xe2\x96\x9f\xdb\x85\x3c\xc1\x9f\xa1\x78\x86\x49\xbe\x7b\x59\x44\x5f\x5f\xa8\x11\x8f\x52\x28\x08\x0d\x3e\x80\xf5\xe7\x14\x05\xb7\xec\xf0\xf1\x2a\xd1\x53\xfe\xc7\x38\xdd\xf8\x19\x6e\xd1\x74\xa3\xd0\x66\x29\x7d\x90\xf0\x22\x4e\xea\xe9\x35\xaf\x24\x3b\x04\xff\x39\x17\x2d\x61\x60\x9c\xe6\xd4\x6c\x84\x90\x47\x8c\x5b\x22\x40\xb8\x58\x30\xc2\xe8\xe4\xd4\xc1\x81\x88\x27\x7f\xe9\xb8\x31\x82\x60\xd7\x46\x38\x45\xf8\x6e\xf1\x72\xfb\x60\x7e\xaf\x3a\xb6\x5e\xb8\x71\x01\x62\x69\x24\x2e\xc4\xde\x67\x00\xe1\x63\xf3\x71\x1c\x23\x7c\x07\xee\x18\x14\x77\xea\x6d\x8e\x5f\x01\xc1\x51\x9f\xb4\xf4\xbf\x18\xb6\x8b\x58\xe0\xe8\x49\x89\x5b\x85\xea\xdd\x1a\xd9\xc8\xf5\xa5\x9c\x1e\x61\x61\xf2\x3f\xc1\x27\x4f\xd4\x28\xdd\x2c\x44\x6a\x57\x64\xd7\x16\x3e\x38\x52\xd7\x42\xc7\xfd\x59\x9f\xd7\x1a\x47\xa8\x7b\xb5\x2b\x1c\xe2\x18\x0b\x9f\x02\x8f\xc0\x10\x48\x47\xb8\xf6\xfa\x84\x28\xa4\xb5\x83\x04\x15\xe5\x8d\x7c\xcc\x5f\x5d\x03\x16\xd9\xaf\x98\x8b\x75\xbb\x81\x81\x4c\xe4\x75\x91\x24\x7a\xb6\xf3\x92\xd7\xb7\x9f\x08\x42\x66\x4b\xb7\xa6\x66\xdc\x37\x64\x61\xa9\x2c\x74\xab\xbc\x72\x92\x56\x85\xbf\x4d\xe2\x9d\xef\x70\x89\x0c\x81\x27\x44\x5c\xf1\x82\x00\x60\xe6\x37\x8f\xb9\xaa\xfb\x32\xac\x4e\x45\x73\xf0\xc7\xcf\xeb\x8b\x1d\x2a\xbf\x27\xe7\x7a\xac\xb0\x6f\xc9\x6d\xea\xaa\xc3\xd4\x2e\xd9\x1e\x23\xb3\xd1\x87\xa3\x6e\x13\x55\xdf\x5b\x73\x40\xdb\x43\x4d\x0e\xca\xb7\x13\xdf\x08",
    },
    {
        RSA_3072,
        HASH_SHA_512_256,
        0x1fdecf,
        "\xa9\xd6\x49\x9f\x2f\x8b\xd5\xc8\x48\x19\x4a\x6b\x44\x4e\xa4\x87\x00\xb1\x3a\x19\x88\x75\x3c\xbd\x18\x7d\x6e\x5a\xd8\xb9\x93\x47\xa2\x7a\x0f\x0c\x3b\xdc\x03\x8e\x74\xb8\xda\xb1\xa9\x58\xfb\x19\x88\x37\x7d\xe0\x0e\x4a\x1c\x8b\x9f\xde\x61\xdf\x9c\xbf\x6c\x6d\xf2\x0c\x57\xd1\xeb\xb9\x99\x88\x20\x87\x84\xcb\x2c\xcf\x06\x7e\x4c\x1b\xd2\x69\xf7\x4d\x8b\x89\x78\x96\xaa\xf7\xe4\x90\x1b\x78\x61\x14\x34\x40\xf0\x54\xc7\xf5\x3f\x0e\x3a\x29\x24\x86\x77\xd7\x07\xe4\x62\x4e\x4e\x2c\x5d\x07\x5b\x98\xbf\x0a\x18\xbe\x78\x09\x05\xa1\x58\x8a\xa3\x44\x0c\xe2\xd5\x76\x0e\xcc\x76\x7b\x1c\x43\xcb\xd0\x09\x24\x42\x84\x78\x92\x3f\xbe\x6f\x46\x02\xfc\xe3\x61\x84\xd2\x1f\xb8\x95\xb0\x4e\x6a\x8c\xde\x5f\x0b\x87\x98\x11\x0c\xb0\x49\x71\x55\xbe\x53\x36\xb9\xfb\xc0\x52\x9a\xb9\x98\x0c\x85\xba\x0e\xdc\xb4\xaf\x2d\xbc\x7c\xd2\x68\xb2\xf6\x99\xd1\x5f\x2a\x7e\x91\x51\x0f\xd7\x82\xc5\x81\x67\x2d\xfc\x1d\x1c\xa8\xe7\x98\xf7\x0e\xe5\x60\x80\xdb\x77\x47\x01\x18\xcf\xc3\x98\xef\xa7\x28\x47\x1e\x5c\x4f\xfd\xad\xdd\xfb\x32\x32\x25\x1e\x1b\xf6\x1e\x29\x5a\xcf\x80\xd8\x74\xcc\xc2\xec\x05\x2a\xc1\x80\x62\x76\xf9\x8e\xaf\x25\xd2\xf9\x15\x68\x53\xea\x3f\x27\xa3\xf0\xad\x6b\x9c\xff\x46\xb0\xde\xed\x82\xfd\x9f\x51\x75\xb6\xf8\x45\x76\x8b\x45\x88\x1f\xb5\xe5\x84\x12\x90\x33\x16\x12\x32\xa4\xda\x53\x75\xa7\x19\x72\x9c\x8f\x42\x73\x90\xc2\x85\x99\x97\xa5\xac\x21\xbf\xc7\xc4\xcb\x3c\x43\x3d\x29\x26\x5a\x19\x39\x98\x68\xa8\xc1\x67\x44\xbb\xb5\xe4\x43\x50\xc8\xb2\xb3\xac\xf7\x66\x96\x6e\xe0\x4e\x91\xdb\x3b\x56\x40\x81\xd7\xb4\x56\xd9\xd7\x8d\x46\xac\x43\x85\x77\xbb",
        "\x18\x40\x2a\xa3\x3d\x47\xf2\x7b\xd0\xa2\x1f\xf7\x64\x13\x2a\xa9\x3d\xa9\x5e\x75\xe6\xd5\xfc\xd0\x38\xb0\xbc\x89\xc9\x4c\xa0\xfc\x65\xff\x7d\x41\x45\xd5\x0d\xec\x72\xd0\xa6\xd4\xa2\xab\x33\x1b\x5c\xde\xf5\x97\x7d\xb2\x25\x1b\xd3\xab\x0d\xa5\x28\x19\x3f\x5c\x47\xaf\xd4\x43\x25\x25\xd0\x75\x86\x6c\x15\x43\x48\x9a\x92\x53\x52\xd9\x7e\x91\xaf\x47\x1b\xb9\x18\x17\x6f\x9f\x4c\x6f\xf9\x1d\x98\x56\x0b\x07\x3d\xf2\x5c\xcb\x85\x0f\xb6\xbf\x6a\x1c\xfe\xbb\x89\x5e\x11\xe5\x00\xf5\x1c\xd5\x5e\x3f\xf8\x52\x03\xe7\x53\xbe\x37\x97\xfa\xdb\xa4\xe7\x10\xac\x18\x38\xfc\x19\x17\xac\x12\xb4\xa8\xd0\x1a\xcf\x9d\x9f\xb1\x09\x2f\x95\xea\x86\x12\x88\xca\x4b\x61\x87\x93\x75\x4d\x2e\xcb\xec\x3d\x16\x5e\x08\x13\x3b\xf6\x1e\x12\xce\x79\x9d\x57\x57\x81\x1c\xc9\xfe\x1b\x2e\x63\xc9\xfd\x19\xb4\xf1\x13\x90\xf8\xdc\xdc\x85\x66\x72\x39\xcb\x77\x62\x7e\x93\x07\x05\x4a\x65\xa2\xdc\xd5\x41\x1e\xa4\x68\xad\xc6\x60\x2e\xb9\xe7\x18\x92\xc4\xa3\x2f\xa1\xf3\x53\xdd\x3c\x95\x59\xd2\xbf\x2f\x5f\x37\x31\x04\x57\x45\x87\x9e\x1b\x5a\x4d\xe4\x6c\x5a\xea\x13\x80\x01\x68\x23\xeb\x48\xe4\xe2\xe0\xf5\x84\x54\x07\xf0\x3c\x2c\x34\xec\x6c\xd0\x96\x04\xd8\x7c\x36\xf3\x1c\x2f\x09\xb1\x94\xf7\x7a\xc2\x7b\x56\xdc\xe1\xbc\x58\x2c\x55\xc4\x39\x89\x78\x76\xf4\x9e\x8d\xa0\xf6\xf1\x5f\xd3\x55\xe0\x5e\x22\x54\xcc\x67\xc3\x46\x71\x18\x26\x22\x42\x4d\xac\x86\xf6\x80\xf0\x8e\xb3\x26\xa1\x46\xe4\x94\xd1\x27\x16\x8c\x4f\xf0\xb2\x23\xc1\x2c\xf7\x61\xcf\x1a\xd2\xed\x6c\xc5\xde\xf7\xff\x28\xb9\x12\xb8\xa2\xcd\x31\x30\x83\x95\x02\x84\xbd\x71\x70\x83\x9a\x48\x28\xf6\x72\xef\x22\xef\xdf",
        128,
        "\xde\xde\x93\x44\xf0\x21\xa6\xbf\xaa\xb1\xf3\x1a\x11\x56\xba\xe8\x7c\xd6\x31\xd9\xec\x04\x77\xde\x9b\xf9\xc9\x8d\xd8\xa2\xf8\xc8\x11\x7b\x1a\x99\x32\x99\x80\x61\x2e\xee\xe9\x32\xda\xc9\xf5\x79\x02\x9c\xdd\xe0\xb7\x02\x60\x72\xe6\x00\x01\x00\x2f\x8b\x6f\xc4\xf3\x4b\x45\x45\xaf\x9f\xf3\x7a\x89\xe1\xfc\x32\x29\xeb\x63\xb4\xca\xda\x5f\xa2\x91\x12\x56\x23\x1d\x82\x09\x40\x5f\x29\x0d\x8f\xac\xd8\x7a\x0f\x10\x3a\xe7\x54\xe6\x13\x95\xe4\xa5\xc5\xea\xe0\xfd\x18\x21\xe7\x23\x3a\x41\x37\x69\x05\x4b\x15\x11\x81\xb8\x70",
        0,
        NULL,
        "\x55\x2e\x17\x31\x56\xb6\xa9\xfa\xd3\xe7\xa6\x96\xb0\xae\xbf\x59\x4d\x2c\x4c\x8c\xfe\xa3\xb3\xd5\xcc\x16\x39\x8b\x1c\x88\xd4\x25\x7f\xaa\x93\x98\xbb\xf1\xbd\x96\xcd\xe8\x45\x41\x1e\x4b\x0e\x46\xf0\x62\xb0\xcb\x6d\x02\x30\x02\x46\xb6\x78\x8c\x50\x30\x0a\x39\x9f\x5f\x55\xc8\x9e\xd1\xa7\xd5\xf7\xce\x95\xc0\xe1\xb4\x44\x6f\x0b\xb1\x1c\x3f\xed\xf7\x9c\xad\x0e\xca\xda\xc9\xb3\x30\x4e\xc7\x34\xeb\xaf\x63\x58\x8a\x77\x01\x35\x5a\xa7\x15\xd1\x6e\xd9\xe2\xa3\xb3\x38\xab\xd5\xa9\x6b\x12\xbd\x3a\x7a\x28\x55\x54\x40\xe1\xd2\x2e\x01\x03\x50\xfa\x32\x9d\xab\x5d\x08\xaa\xa5\x3c\x23\xf3\x44\x96\x2c\xc7\x1d\x6a\x00\x59\x33\x44\xd1\x6b\x6b\x8d\x92\xe4\x1f\xb6\x8d\xc3\xfe\x32\x13\x74\xa1\x71\x46\xc1\xb1\xd3\x3d\x43\x47\x25\xf9\xc9\x71\x6d\x3a\xfc\x0c\xc0\xfc\xca\x75\x57\x25\xb9\x59\x31\xe9\x53\x92\x82\x27\x14\x23\xfb\x32\x9b\xcd\x48\x2c\x83\x88\xb8\xb7\x9c\x6a\x24\x59\x35\x86\x61\x6a\x73\x80\xd5\xfa\x7c\xcb\xa2\xde\xe3\x01\x51\xac\x8e\xf9\x21\x50\x45\x9c\x63\x0c\x05\xea\x15\xec\x90\x79\x64\xbd\xde\x71\x67\xa6\xc6\x49\x1f\xac\xac\xd8\xe7\xbc\xae\x2e\x56\x46\x12\xe2\xbc\xab\xa4\x45\x9f\x10\xc1\xcd\x6e\x5c\x60\x87\x74\x16\x5d\x2f\xf1\x17\x52\xa8\x8e\x1e\x23\x94\xf8\x75\x02\x29\xec\xc8\x21\x73\xd7\xaa\x57\xe6\xf8\xa4\xb2\x0b\x7e\x9f\x67\x6d\xbe\xf7\x52\x29\xc2\x81\x46\x8d\x7c\x1a\x3c\x0b\xe1\xa7\x19\x87\x16\x1b\xc4\x69\x14\x0f\x9c\x22\x4d\x67\xe0\x1e\xce\x5d\xa6\x9f\x09\xf0\xec\x28\x25\x00\xdd\xd3\x51\x80\x67\x91\xf4\xb3\x63\xc3\x59\x20\xf0\x0e\x02\xc2\xfd\x49\xbd\xa9\xff\x7d\x51\x11\xd3\x8d\x1a\xac\xbc\x3f\x79\x5c\xfc\x26\x79\x14\x8c",
    },
};

static int ecc_prk_gen_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(ecprk_tp) / sizeof(struct ecprk_test_pattern);
    const struct ecprk_test_pattern* tp = ecprk_tp;
    pufs_key_io_t ctl;

    printf("##########################################################\n");
    printf("ECC PRK GEN TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].name);

        pufs_ecc_prk_gen_t gen;
        gen.ecctype = tp[i].name;
        gen.is_ephemeral = 0;
        gen.prkslot = KS_PRK_0;
        gen.keytype = KT_SWKEY;
        gen.hashtype = HASH_SHA_256;
        gen.keybits = tp[i].keybits;
        gen.saltlen = tp[i].saltlen;
        gen.infolen = tp[i].infolen;
        gen.keyaddr = (uint8_t*)tp[i].key;
        gen.salt = (uint8_t*)tp[i].salt;
        gen.info = (uint8_t*)tp[i].info;
        ret = ioctl(fd, PUFS_ECC_PRK_GEN, &gen);
        if (ret) {
            printf("ioctl PUFS_ECC_PRK_GEN err!\n");
            break;
        }

        pufs_ecc_puk_gen_t pukgen;
        pufs_ecc_puk_t puk;
        pukgen.ecctype = tp[i].name;
        pukgen.prktype = KT_PRKEY;
        pukgen.prkslot = KS_PRK_0;
        pukgen.puk = &puk;
        ret = ioctl(fd, PUFS_ECC_PUK_GEN, &pukgen);
        if (ret) {
            printf("ioctl PUFS_ECC_PUK_GEN err!\n");
            break;
        }

        ctl.mode = KM_CLEAR;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ioctl(fd, PUFS_KEY_INOUT, &ctl);

        ret = memcmp(puk.x, tp[i].Qx, puk.qlen) || memcmp(puk.y, tp[i].Qy, puk.qlen);
        if (ret) {
            printf("compare err!\n");
            break;
        }
    }

    ctl.mode = KM_CLEAR;
    ctl.keytype = KT_PRKEY;
    ctl.keyslot = KS_PRK_0;
    ioctl(fd, PUFS_KEY_INOUT, &ctl);

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int ecc_puk_gen_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(ecpuk_tp) / sizeof(struct ecpuk_test_pattern);
    const struct ecpuk_test_pattern* tp = ecpuk_tp;
    pufs_key_io_t ctl;

    printf("##########################################################\n");
    printf("ECC PUK GEN TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].name);

        ctl.mode = KM_IMPORT_PT;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ctl.keyaddr = (void*)tp[i].prk;
        ctl.keybits = ecc_param[tp[i].name].fbits;
        ret = ioctl(fd, PUFS_KEY_INOUT, &ctl);
        if (ret) {
            printf("ioctl PUFS_KEY_INOUT err!\n");
            break;
        }

        pufs_ecc_puk_gen_t gen;
        pufs_ecc_puk_t puk;
        gen.ecctype = tp[i].name;
        gen.prktype = KT_PRKEY;
        gen.prkslot = KS_PRK_0;
        gen.puk = &puk;
        ret = ioctl(fd, PUFS_ECC_PUK_GEN, &gen);
        if (ret) {
            printf("ioctl PUFS_ECC_PUK_GEN err!\n");
            break;
        }

        ctl.mode = KM_CLEAR;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ioctl(fd, PUFS_KEY_INOUT, &ctl);

        ret = memcmp(puk.x, tp[i].Qx, puk.qlen) || memcmp(puk.y, tp[i].Qy, puk.qlen);
        if (ret) {
            printf("compare err!\n");
            break;
        }
    }

    ctl.mode = KM_CLEAR;
    ctl.keytype = KT_PRKEY;
    ctl.keyslot = KS_PRK_0;
    ioctl(fd, PUFS_KEY_INOUT, &ctl);

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int ecc_puk_verify_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(ecpkv_tp) / sizeof(struct ecpkv_test_pattern);
    const struct ecpkv_test_pattern* tp = ecpkv_tp;

    printf("##########################################################\n");
    printf("ECC PUK VERIFY TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].name);

        pufs_ecc_puk_verify_t verify;
        pufs_ecc_puk_t puk;
        puk.qlen = ecc_param[tp[i].name].len;
        memcpy(puk.x, tp[i].Qx, puk.qlen);
        memcpy(puk.y, tp[i].Qy, puk.qlen);
        verify.ecctype = tp[i].name;
        verify.puk = &puk;
        ret = ioctl(fd, PUFS_ECC_PUK_VERIFY, &verify);
        if (!ret != tp[i].valid) {
            printf("ioctl PUFS_ECC_PUK_VERIFY err!\n");
            ret = -1;
            break;
        }
        ret = 0;
    }

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int ecdsa_sign_verify_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(ecpuk_tp) / sizeof(struct ecpuk_test_pattern);
    const struct ecpuk_test_pattern* tp = ecpuk_tp;
    pufs_key_io_t ctl;

    printf("##########################################################\n");
    printf("ECDSA SIGN-VERIFY TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].name);

        ctl.mode = KM_IMPORT_PT;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ctl.keyaddr = (void*)tp[i].prk;
        ctl.keybits = ecc_param[tp[i].name].fbits;
        ret = ioctl(fd, PUFS_KEY_INOUT, &ctl);
        if (ret) {
            printf("ioctl PUFS_KEY_INOUT err!\n");
            break;
        }

        pufs_ecdsa_sign_t sign;
        pufs_ecdsa_sig_t sig;
        char* msg = "ecdsa sign-verify test";
        sign.ecctype = tp[i].name;
        sign.prktype = KT_PRKEY;
        sign.prkslot = KS_PRK_0;
        sign.md = (uint8_t*)msg;
        sign.mdlen = strlen(msg);
        sign.mdlen = sign.mdlen > 64 ? 64 : sign.mdlen;
        sign.sig = &sig;
        ret = ioctl(fd, PUFS_ECDSA_SIGN, &sign);
        if (ret) {
            printf("ioctl PUFS_ECDSA_SIGN err!\n");
            break;
        }

        pufs_ecdsa_verify_t verify;
        pufs_ecc_puk_t puk;
        puk.qlen = ecc_param[tp[i].name].len;
        memcpy(puk.x, tp[i].Qx, puk.qlen);
        memcpy(puk.y, tp[i].Qy, puk.qlen);
        verify.ecctype = tp[i].name;
        verify.puk = &puk;
        verify.sig = &sig;
        verify.md = (uint8_t*)msg;
        verify.mdlen = strlen(msg);
        verify.mdlen = verify.mdlen > 64 ? 64 : verify.mdlen;
        ret = ioctl(fd, PUFS_ECDSA_VERIFY, &verify);
        if (ret) {
            printf("ioctl PUFS_ECDSA_VERIFY err!\n");
            break;
        }

        ctl.mode = KM_CLEAR;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ioctl(fd, PUFS_KEY_INOUT, &ctl);
    }

    ctl.mode = KM_CLEAR;
    ctl.keytype = KT_PRKEY;
    ctl.keyslot = KS_PRK_0;
    ioctl(fd, PUFS_KEY_INOUT, &ctl);

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int sm2_sign_verify_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(sm2_sign_tp) / sizeof(struct sm2_sign_test_pattern);
    const struct sm2_sign_test_pattern* tp = sm2_sign_tp;
    pufs_key_io_t ctl;

    printf("##########################################################\n");
    printf("SM2 SIGN-VERIFY TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].name);

        ctl.mode = KM_IMPORT_PT;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ctl.keyaddr = (void*)tp[i].prk;
        ctl.keybits = ecc_param[tp[i].name].fbits;
        ret = ioctl(fd, PUFS_KEY_INOUT, &ctl);
        if (ret) {
            printf("ioctl PUFS_KEY_INOUT err!\n");
            break;
        }

        pufs_sm2_sign_t sign;
        pufs_ecdsa_sig_t sig;
        sign.prktype = KT_PRKEY;
        sign.prkslot = KS_PRK_0;
        sign.id = (uint8_t*)tp[i].id;
        sign.idlen = tp[i].idlen;
        sign.msg = (uint8_t*)tp[i].msg;
        sign.msglen = tp[i].msglen;
        sign.sig = &sig;
        ret = ioctl(fd, PUFS_SM2_SIGN, &sign);
        if (ret) {
            printf("ioctl PUFS_SM2_SIGN err!\n");
            break;
        }

        pufs_sm2_verify_t verify;
        pufs_ecc_puk_t puk;
        puk.qlen = ecc_param[tp[i].name].len;
        memcpy(puk.x, tp[i].pukx, puk.qlen);
        memcpy(puk.y, tp[i].puky, puk.qlen);
        verify.id = (uint8_t*)tp[i].id;
        verify.idlen = tp[i].idlen;
        verify.msg = (uint8_t*)tp[i].msg;
        verify.msglen = tp[i].msglen;
        verify.sig = &sig;
        verify.puk = &puk;
        ret = ioctl(fd, PUFS_SM2_VERIFY, &verify);
        if (ret) {
            printf("ioctl PUFS_SM2_VERIFY err!\n");
            break;
        }

        ctl.mode = KM_CLEAR;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ioctl(fd, PUFS_KEY_INOUT, &ctl);
    }

    ctl.mode = KM_CLEAR;
    ctl.keytype = KT_PRKEY;
    ctl.keyslot = KS_PRK_0;
    ioctl(fd, PUFS_KEY_INOUT, &ctl);

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int sm2_enc_dec_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(sm2_enc_tp) / sizeof(struct sm2_enc_test_pattern);
    const struct sm2_enc_test_pattern* tp = sm2_enc_tp;
    pufs_key_io_t ctl;

    printf("##########################################################\n");
    printf("SM2 ENC-DEC TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].name);

        ctl.mode = KM_IMPORT_PT;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ctl.keyaddr = (void*)tp[i].prk;
        ctl.keybits = ecc_param[tp[i].name].fbits;
        ret = ioctl(fd, PUFS_KEY_INOUT, &ctl);
        if (ret) {
            printf("ioctl PUFS_KEY_INOUT err!\n");
            break;
        }

        pufs_sm2_enc_t enc;
        pufs_ecc_puk_t puk;
        uint32_t ctlen = 0;
        uint8_t* ct = malloc(tp[i].ctlen);
        puk.qlen = ecc_param[tp[i].name].len;
        memcpy(puk.x, tp[i].pukx, puk.qlen);
        memcpy(puk.y, tp[i].puky, puk.qlen);
        enc.format = SM2CT_C1C3C2;
        enc.puk = &puk;
        enc.in = (uint8_t*)tp[i].pt;
        enc.inlen = tp[i].ptlen;
        enc.out = ct;
        enc.outlen = &ctlen;
        ret = ioctl(fd, PUFS_SM2_ENC, &enc);
        if (ret) {
            printf("ioctl PUFS_SM2_ENC err!\n");
            break;
        }

        pufs_sm2_dec_t dec;
        uint32_t ptlen = 0;
        uint8_t* pt = malloc(tp[i].ptlen);
        dec.format = SM2CT_C1C3C2;
        dec.prkslot = KS_PRK_0;
        dec.in = ct;
        dec.inlen = ctlen;
        dec.out = pt;
        dec.outlen = &ptlen;
        ret = ioctl(fd, PUFS_SM2_DEC, &dec);
        if (ret) {
            printf("ioctl PUFS_SM2_DEC err!\n");
            break;
        }

        ret = ptlen != tp[i].ptlen || memcmp(pt, tp[i].pt, ptlen);
        if (ret) {
            printf("dec compare err!\n");
            break;
        }

        ctl.mode = KM_CLEAR;
        ctl.keytype = KT_PRKEY;
        ctl.keyslot = KS_PRK_0;
        ioctl(fd, PUFS_KEY_INOUT, &ctl);
    }

    ctl.mode = KM_CLEAR;
    ctl.keytype = KT_PRKEY;
    ctl.keyslot = KS_PRK_0;
    ioctl(fd, PUFS_KEY_INOUT, &ctl);

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int rsa_sign_verify_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(rsa_exp_tp) / sizeof(struct rsa_exp_test_pattern);
    const struct rsa_exp_test_pattern* tp = rsa_exp_tp;

    printf("##########################################################\n");
    printf("RSA SIGN-VERIFY TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].rsatype);

        uint8_t sig[512];
        pufs_rsa_sign_t sign;
        sign.rsamode = RSA_BASE;
        sign.rsatype = tp[i].rsatype;
        sign.n = (uint8_t*)tp[i].n;
        sign.prk = (uint8_t*)tp[i].prk;
        sign.msg = (uint8_t*)tp[i].msg;
        sign.puk = tp[i].puk;
        sign.sig = sig;
        ret = ioctl(fd, PUFS_RSA_SIGN, &sign);
        if (ret) {
            printf("ioctl PUFS_RSA_SIGN err!\n");
            break;
        }

        ret = memcmp(sig, tp[i].sig, (tp[i].rsatype + 1) * 128);
        if (ret) {
            printf("sign compare err!\n");
            break;
        }

        pufs_rsa_verify_t verify;
        verify.rsamode = RSA_BASE;
        verify.rsatype = tp[i].rsatype;
        verify.n = (uint8_t*)tp[i].n;
        verify.msg = (uint8_t*)tp[i].msg;
        verify.puk = tp[i].puk;
        verify.sig = sig;
        ret = ioctl(fd, PUFS_RSA_VERIFY, &verify);
        if (ret) {
            printf("ioctl PUFS_RSA_VERIFY err!\n");
            break;
        }
    }

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int rsax931_sign_verify_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(rsa_x931_tp) / sizeof(struct rsa_x931_test_pattern);
    const struct rsa_x931_test_pattern* tp = rsa_x931_tp;

    printf("##########################################################\n");
    printf("RSA-X931 SIGN-VERIFY TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].rsatype);

        uint8_t sig[512];
        pufs_rsa_sign_t sign;
        sign.rsamode = RSA_X931;
        sign.rsatype = tp[i].rsatype;
        sign.hashtype = tp[i].hash;
        sign.n = (uint8_t*)tp[i].n;
        sign.prk = (uint8_t*)tp[i].prk;
        sign.msg = (uint8_t*)tp[i].msg;
        sign.msglen = tp[i].msglen;
        sign.puk = tp[i].puk;
        sign.sig = sig;
        ret = ioctl(fd, PUFS_RSA_SIGN, &sign);
        if (ret) {
            printf("ioctl PUFS_RSA_SIGN err!\n");
            break;
        }

        ret = memcmp(sig, tp[i].sig, (tp[i].rsatype + 1) * 128);
        if (ret) {
            printf("sign compare err!\n");
            break;
        }

        pufs_rsa_verify_t verify;
        verify.rsamode = RSA_X931;
        verify.rsatype = tp[i].rsatype;
        verify.n = (uint8_t*)tp[i].n;
        verify.msg = (uint8_t*)tp[i].msg;
        verify.msglen = tp[i].msglen;
        verify.puk = tp[i].puk;
        verify.sig = sig;
        ret = ioctl(fd, PUFS_RSA_VERIFY, &verify);
        if (ret) {
            printf("ioctl PUFS_RSA_VERIFY err!\n");
            break;
        }
    }

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int rsap1v15_sign_verify_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(rsa_p1v15_tp) / sizeof(struct rsa_p1v15_test_pattern);
    const struct rsa_p1v15_test_pattern* tp = rsa_p1v15_tp;

    printf("##########################################################\n");
    printf("RSA-P1V15 SIGN-VERIFY TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].rsatype);

        uint8_t sig[512];
        pufs_rsa_sign_t sign;
        sign.rsamode = RSA_P1V15;
        sign.rsatype = tp[i].rsatype;
        sign.hashtype = tp[i].hash;
        sign.n = (uint8_t*)tp[i].n;
        sign.prk = (uint8_t*)tp[i].prk;
        sign.msg = (uint8_t*)tp[i].msg;
        sign.msglen = tp[i].msglen;
        sign.puk = tp[i].puk;
        sign.sig = sig;
        ret = ioctl(fd, PUFS_RSA_SIGN, &sign);
        if (ret) {
            printf("ioctl PUFS_RSA_SIGN err!\n");
            break;
        }

        ret = memcmp(sig, tp[i].sig, (tp[i].rsatype + 1) * 128);
        if (ret) {
            printf("sign compare err!\n");
            break;
        }

        pufs_rsa_verify_t verify;
        verify.rsamode = RSA_P1V15;
        verify.rsatype = tp[i].rsatype;
        verify.n = (uint8_t*)tp[i].n;
        verify.msg = (uint8_t*)tp[i].msg;
        verify.msglen = tp[i].msglen;
        verify.puk = tp[i].puk;
        verify.sig = sig;
        ret = ioctl(fd, PUFS_RSA_VERIFY, &verify);
        if (ret) {
            printf("ioctl PUFS_RSA_VERIFY err!\n");
            break;
        }
    }

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

static int rsapss_sign_verify_test(void)
{
    int ret;
    int fd;
    const uint32_t ntests = sizeof(rsa_pss_tp) / sizeof(struct rsa_pss_test_pattern);
    const struct rsa_pss_test_pattern* tp = rsa_pss_tp;

    printf("##########################################################\n");
    printf("RSA-PSS SIGN-VERIFY TEST DEMO\n");
    printf("##########################################################\n");

    fd = open("/dev/pufs", O_RDWR);
    if (fd < 0) {
        printf("open /dev/pufs err!\n");
        return -1;
    }

    for (int i = 0; i < ntests; i++) {
        printf("case %d, nameid = %d\n", i, tp[i].rsatype);

        uint8_t sig[512];
        pufs_rsa_sign_t sign;
        sign.rsamode = RSA_PSS;
        sign.rsatype = tp[i].rsatype;
        sign.hashtype = tp[i].hash;
        sign.n = (uint8_t*)tp[i].n;
        sign.prk = (uint8_t*)tp[i].prk;
        sign.msg = (uint8_t*)tp[i].msg;
        sign.msglen = tp[i].msglen;
        sign.salt = (uint8_t*)tp[i].salt;
        sign.saltlen = tp[i].saltlen;
        sign.puk = tp[i].puk;
        sign.sig = sig;
        ret = ioctl(fd, PUFS_RSA_SIGN, &sign);
        if (ret) {
            printf("ioctl PUFS_RSA_SIGN err!\n");
            break;
        }

        ret = memcmp(sig, tp[i].sig, (tp[i].rsatype + 1) * 128);
        if (ret) {
            printf("sign compare err!\n");
            break;
        }

        pufs_rsa_verify_t verify;
        verify.rsamode = RSA_PSS;
        verify.rsatype = tp[i].rsatype;
        verify.hashtype = tp[i].hash;
        verify.n = (uint8_t*)tp[i].n;
        verify.msg = (uint8_t*)tp[i].msg;
        verify.msglen = tp[i].msglen;
        verify.puk = tp[i].puk;
        verify.sig = sig;
        ret = ioctl(fd, PUFS_RSA_VERIFY, &verify);
        if (ret) {
            printf("ioctl PUFS_RSA_VERIFY err!\n");
            break;
        }
    }

    if (ret == 0)
        printf("Success!\n");
    else
        printf("Fail!\n");

    close(fd);

    return ret;
}

int akcipher_test(void)
{
    int ret;

    ret = ecc_prk_gen_test();
    if (ret)
        return ret;
    ret = ecc_puk_gen_test();
    if (ret)
        return ret;
    ret = ecc_puk_verify_test();
    if (ret)
        return ret;
    ret = ecdsa_sign_verify_test();
    if (ret)
        return ret;
    ret = sm2_sign_verify_test();
    if (ret)
        return ret;
    ret = sm2_enc_dec_test();
    if (ret)
        return ret;
    ret = rsa_sign_verify_test();
    if (ret)
        return ret;
    ret = rsax931_sign_verify_test();
    if (ret)
        return ret;
    ret = rsap1v15_sign_verify_test();
    if (ret)
        return ret;
    ret = rsapss_sign_verify_test();
    if (ret)
        return ret;

    return 0;
}
